You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/08 21:07:57 UTC

[jira] [Resolved] (CAMEL-5069) OnException with handled and no further processing should not send the message to the error handler

     [ https://issues.apache.org/jira/browse/CAMEL-5069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5069.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.9.2)

Works as intended, as having an onException with no output, solves special cases, where you want to handle the exception, but still let the message be handled by the DLC.

Alternative we would have to break backwards compatible, and add validation to onException to fail if you use handled, and then do not have any outputs.

                
> OnException with handled and no further processing should not send the message to the error handler
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5069
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5069
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Inconsistent-onException-behaviour-tp5541356p5541356.html
> Having
> {code}
>                 errorHandler(deadLetterChannel("mock:error"));
>                 onException(Exception.class)
>                     .handled(true);
> {code}
> Should not route message to the DLC as the onException is handling the failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira