Details
-
New Feature
-
Status: Resolved
-
Trivial
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Unknown
Description
For convinience I would like to have camel dsl extended with following method:
.setException(..)
Then the following example would be one liner.
Example:
.doTry()
// try something
.endDoTry()
doCatch(Exception.class)
// Set the exception after our compensation logic is performed in order for the route error handler to kick in.
.process(exchange -> {
Exception exception = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, Exception.class);
if (exception != null)
})
.end();