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.