camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true
Date Sun, 23 Nov 2008 12:00:05 GMT

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

Claus Ibsen resolved CAMEL-1104.
--------------------------------

    Fix Version/s: 1.5.1
       Resolution: Fixed

Merged to 1.5.1 in rev 719980

> onException to support predicate to only trigger it if predicate is true
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1104
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.1, 2.0.0
>
>
> Currently if you use etc
> {code}
> onException(MyException.class).to("bean:handleMyException");
> {code}
> Then this exception is always routed if a MyException is thrown. Some end users might
need to add a predicate so they can add their custom code if the exception should be routed
or not
> Such as supporting setting a predicate with when:
> {code}
> onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
> {code}
> See nabble:
> http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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


Mime
View raw message