Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from(...) // exception is thrown here
- .onException(Exception.class)
- .handled(true)
- .to("direct:end")
- .end()
- ...
- from("direct:end")
- .process(exchange -> {
- // prints: org.apache.camel.component.file.GenericFileOperationFailedException: ...
- log.debug(exchange.getProperty(Exchange.EXCEPTION_CAUGHT).toString());
- })
- // prints: null
- .log(simple("${exchangeProperty.EXCEPTION_CAUGHT}").getText())
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement