camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Exceptions management
Date Thu, 24 Jan 2013 08:33:42 GMT
On Wed, Jan 23, 2013 at 11:20 AM, developpef <src182@orange.fr> wrote:
> Hello,
>
> This message to get more explanations on exceptions management on routes.
>
> Here is my app :
>
> I created a custom MyException extending RuntimeCamelException (wich extends
> Exception).
>
> My routes are :
>
> onException(MyException.class).handled(true).log("FATAL").end();
>
> from("...").onException(Exception.class).log("LOCAL_ERROR").end().to(myBean);
>
> MyBean is throwing a MyException.
>
> I was surprised to see that it was cached in the general onException route
> (with log "FATAL") and not in the local route (with log "LOCAL_ERROR").
>
> Is this due to the extension of RuntimeCamelException or do I missed
> something?
>

What Camel version do you use?


> Thanks
>
>
>
> -----
> http://developpef.blogspot.com
> --
> View this message in context: http://camel.465427.n5.nabble.com/Exceptions-management-tp5726051.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message