Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. from(...) // exception is thrown here
  2.  
  3. .onException(Exception.class)
  4. .handled(true)
  5. .to("direct:end")
  6. .end()
  7.  
  8. ...
  9.  
  10. from("direct:end")
  11.  
  12. .process(exchange -> {
  13. // prints: org.apache.camel.component.file.GenericFileOperationFailedException: ...
  14. log.debug(exchange.getProperty(Exchange.EXCEPTION_CAUGHT).toString());
  15. })
  16.  
  17. // prints: null
  18. .log(simple("${exchangeProperty.EXCEPTION_CAUGHT}").getText())
  19.  
  20. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement