[
https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451808#comment-13451808
]
Claus Ibsen commented on CAMEL-5587:
------------------------------------
We could just add a (Object source) as parameter where {{this}} will be passed
in as parameter. Then the implementation can check its type and do type cast to
get the Consumer etc.
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
> Key: CAMEL-5587
> URL: https://issues.apache.org/jira/browse/CAMEL-5587
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.10.0
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route
> consumers, then when an exception is being handled, they wont know which
> consumer failed.
> We could add a method with the consumer parameter. But that would break the
> old API. But that may be okay as using a custom ExceptionHandler is not
> commonly used.
--
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