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 2008/11/23 09:48:05 UTC
[jira] Work started: (CAMEL-1104) onException to support predicate
to only trigger it if predicate is true
[ https://issues.apache.org/activemq/browse/CAMEL-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-1104 started by Claus Ibsen.
> 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: 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.