[ 
https://issues.apache.org/activemq/browse/CAMEL-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53737#action_53737
 ] 

Claus Ibsen commented on CAMEL-1929:
------------------------------------

Currently in 2.0 or lower the problem is that doCatch clears the 
Exchange.EXCEPTION_CAUGHT where as onException does not.
So this ticket is to make the two of them consistent.

> 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 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to