You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/11/29 07:57:37 UTC

[jira] Resolved: (CAMEL-3372) file component - onMoveFailed - should keep the exchange marked as failed, so onCompletion etc can react on failures

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

Claus Ibsen resolved CAMEL-3372.
--------------------------------

    Resolution: Not A Problem

As OnCompletion is another route it has to remove the caused exception, otherwise Camel think there is an exception thrown during routing and will have its error handler react to that as well.

You can grab the caused exception from the exchange property
{code}
Exception cause = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, Exception.class);
{code}

> file component - onMoveFailed - should keep the exchange marked as failed, so onCompletion etc can react on failures
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3372
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3372
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/onCompletion-for-failed-exchanges-tp3281388p3281388.html

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