[
https://issues.apache.org/jira/browse/CAMEL-5452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442357#comment-13442357
]
Raul Kripalani edited comment on CAMEL-5452 at 8/27/12 9:42 PM:
----------------------------------------------------------------
Not quite sure. As a user, I regard doTry/doCatch as an error catching
mechanism on the same level as error handlers, but focused on specific regions
of the route. While it is true that there are many differences (such as
doTry/doCatch not supporting redeliveries, etc.), the gist remains the same: to
control and handle possible failures.
Rather than creating a new event, I would prefer to add a new field + logic in
{{EventNotifierSupport}} to enable {{ExchangeFailureHandledEvent}} events for
doCatch executions, called 'notifyDoCatch'. By default, this could be disabled
to keep backwards compatibility.
We could also add a field inside ExchangeFailureHandledEvent with an enum to
indicate the origin of the event: ERROR_HANDLER or DO_CATCH.
WDYT?
was (Author: raulvk):
Not quite sure. As a user, I regard doTry/doCatch as an error catching
mechanism on the same level as error handlers, but focused on specific regions
of the route. While it is true that there are many differences (such as
doTry/doCatch not supporting redeliveries, etc.), the gist remains the same: to
control and handle possible failures.
Rather than creating a new event, I would prefer to add a new field + logic in
{{EventNotifierSupport}} to enable {{ExchangeFailureHandledEvent}}s for doCatch
executions, called 'notifyDoCatch'. By default, this could be disabled to keep
backwards compatibility.
We could also add a field inside ExchangeFailureHandledEvent with an enum to
indicate the origin of the event: ERROR_HANDLER or DO_CATCH.
WDYT?
> DoCatch doesn't notify ExchangeFailureHandledEvent
> --------------------------------------------------
>
> Key: CAMEL-5452
> URL: https://issues.apache.org/jira/browse/CAMEL-5452
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.8.0, 2.9.0, 2.10.0
> Reporter: Raul Kripalani
> Fix For: Future
>
>
> The doCatch EIP doesn't honour the emission of an
> {{ExchangeFailureHandledEvent}} when it recognises and handles an exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira