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 2009/03/13 15:42:41 UTC

[jira] Commented: (CAMEL-1457) Bean Binding - @ExchangeException should only be considered if Exchange has an exception (= eg is failed)

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

Claus Ibsen commented on CAMEL-1457:
------------------------------------

And you dont have to provide the @ExchangeException anymore. Camel will be able to provide the Exception if you just define an Exception type

{code}
public void handleFailure(String body, Exception cause) {
...
{code}

> Bean Binding - @ExchangeException should only be considered if Exchange has an exception (= eg is failed)
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1457
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1457
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Relates to the work of improving the BeanInfo algorithm for detecting method to invoke
> {code}
>         public String handleFailure(String order, @ExchangeException Exception e) {
>             return "Failure";
>         }
>         public String handleOrder(String order) {
>             return "Order";
>         }
> {code}
> Should select handleOrder if the Exchange has no exception. And handleFailure if it has an Exception.

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