You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by harinair <ha...@hotmail.com> on 2008/11/26 00:47:40 UTC

Is there any way to retrieve Exception?

I have to save my Camel Exception information in a place for some customers
to see... However I do not see a way to do that.

I use recipientList to send messages to different endpoints... I have an
errorHandler that move it to seda:delivery-failed-channel after a few
retries. Now I was trying to put a processor on delivery-failed-channel to
check the message for Faults or Exception. However I could not find anything
even though the message failed due to SocketException. Am I doing it
wrong??? Is there any way to get the fault in a subsequent process so that I
can save them?

Hari Gangadharan
-- 
View this message in context: http://www.nabble.com/Is-there-any-way-to-retrieve-Exception--tp20692069s22882p20692069.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Is there any way to retrieve Exception?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Isn't the caused exception not there if you use exchange.getException()?

Could you show the route DSL with the error handler setup?


/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/



On Wed, Nov 26, 2008 at 1:29 AM, raulvk <ra...@gmail.com> wrote:
> Try looking into the FAILURE_HANDLED property of the Exchange.
>
> On 25/11/2008, harinair <ha...@hotmail.com> wrote:
>>
>> I have to save my Camel Exception information in a place for some customers
>> to see... However I do not see a way to do that.
>>
>> I use recipientList to send messages to different endpoints... I have an
>> errorHandler that move it to seda:delivery-failed-channel after a few
>> retries. Now I was trying to put a processor on delivery-failed-channel to
>> check the message for Faults or Exception. However I could not find anything
>> even though the message failed due to SocketException. Am I doing it
>> wrong??? Is there any way to get the fault in a subsequent process so that I
>> can save them?
>>
>> Hari Gangadharan
>> --
>> View this message in context:
>> http://www.nabble.com/Is-there-any-way-to-retrieve-Exception--tp20692069s22882p20692069.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>

Re: Is there any way to retrieve Exception?

Posted by raulvk <ra...@gmail.com>.
Try looking into the FAILURE_HANDLED property of the Exchange.

On 25/11/2008, harinair <ha...@hotmail.com> wrote:
>
> I have to save my Camel Exception information in a place for some customers
> to see... However I do not see a way to do that.
>
> I use recipientList to send messages to different endpoints... I have an
> errorHandler that move it to seda:delivery-failed-channel after a few
> retries. Now I was trying to put a processor on delivery-failed-channel to
> check the message for Faults or Exception. However I could not find anything
> even though the message failed due to SocketException. Am I doing it
> wrong??? Is there any way to get the fault in a subsequent process so that I
> can save them?
>
> Hari Gangadharan
> --
> View this message in context:
> http://www.nabble.com/Is-there-any-way-to-retrieve-Exception--tp20692069s22882p20692069.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>