Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.18.3
-
None
-
Advanced
Description
Use an onException handler like this:
onException(Throwable.class).to("direct:handle_er");
from("direct:handle_er")..throwException(new RuntimeException());
If the main route throws an exception then this will create an infinite recursion of exceptions.
I would expect that camel handles the exception inside an onException handler differently. So the onException is not called again.
Attachments
Issue Links
- relates to
-
CAMEL-11255 Error handler may be called twice if routing from onException to direct with global scoped error handler
-
- Resolved
-