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?

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.

Reply via email to