ErrorHandler - handling exception using handled=true should expose the handled
exception on exchange property
-------------------------------------------------------------------------------------------------------------
Key: CAMEL-1929
URL: https://issues.apache.org/activemq/browse/CAMEL-1929
Project: Apache Camel
Issue Type: New Feature
Components: camel-core
Affects Versions: 2.0-M3, 1.6.1
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.1.0
When using
{code}
onException(Exception.class).handled(true).process(new MyErrorHandler());
{code}
The MyErrorHandler cannot see the original caused exception as you have marked
it as handled.
We should expose that exception as a property
Either let it stay on
- {{Exchange.EXCEPTION_CAUGHT}}
Or introduce a new property
- {{Exchange.EXCEPTION_HANDLED}}
The former has the benefit its the same property all the time which may be the
best solution. However it will stay on the Exchange for the remainder of the
routing, unless end user removes it manually.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.