You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sekaijin <je...@sap.aphp.fr> on 2014/03/04 13:36:29 UTC
how to catch Errors?
Hi
I use
to trace the exceptions of my routes.
in MyErrProcessor class, I get the exception with
but I have a processor that throws an IOError, not an Exception but an Error
I thought to
but can not contain Errors just Exceptions.
Thank
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-catch-Errors-tp5748279.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to catch Errors?
Posted by sekaijin <je...@sap.aphp.fr>.
Hi.
sorry for the late reply.
This is the code that I wrote. but I have not been able to verify that it
worked.
Thank
A + JYT
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-catch-Errors-tp5748279p5749018.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to catch Errors?
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Use
Throwable t = exchange.getException(Throwable.class);
On Tue, Mar 4, 2014 at 1:36 PM, sekaijin <je...@sap.aphp.fr> wrote:
> Hi
> I use
>
> to trace the exceptions of my routes.
> in MyErrProcessor class, I get the exception with
>
>
> but I have a processor that throws an IOError, not an Exception but an Error
> I thought to
>
> but can not contain Errors just Exceptions.
>
> Thank
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-catch-Errors-tp5748279.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io