[ https://issues.apache.org/activemq/browse/CAMEL-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1929: ------------------------------- Description: When using {code} onException(Exception.class).handled(true).process(new MyErrorHandler()); // or use doTry() ... doCatch(Exception.class).handled(true).process(new MyErrorHandler()); {code} We should make it consistent that you can obtain the caused exception. So these properties on the Exchange should be the during the failure processor routing and what is returned to the client - Exchange.EXCEPTION_CAUGHT contains the caused exception was: When using {code} onException(Exception.class).handled(true).process(new MyErrorHandler()); // or use doTry() ... doCatch(Exception.class).handled(true).process(new MyErrorHandler()); {code} We should make it consistent that there is a flag and that you can obtain the caused exception. So these properties on the Exchange should be the during the failure processor routing and what is returned to the client - Exchange.EXCEPTION_CAUGHT contains the caused exception - Exchange.FAILURE_HANDLED a boolean whether it was handled or not > ErrorHandler - handling exception using handled=true should expose a flag its > handled > ------------------------------------------------------------------------------------- > > Key: CAMEL-1929 > URL: https://issues.apache.org/activemq/browse/CAMEL-1929 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 1.6.1, 2.0-M3 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.1.0 > > > When using > {code} > onException(Exception.class).handled(true).process(new MyErrorHandler()); > // or use > doTry() > ... > doCatch(Exception.class).handled(true).process(new MyErrorHandler()); > {code} > We should make it consistent that you can obtain the caused exception. > So these properties on the Exchange should be the during the failure > processor routing and what is returned to the client > - Exchange.EXCEPTION_CAUGHT contains the caused exception -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.