Well, what I really want to do is something along the lines of editing the
body, to include both the original content, as well as info on the
exception, along the lines of:

public void process(Exchange exchange) {
   Message in = exchange.getIn();
   Exception ex = exchange.getException();
   in.setBody("Errors found in shipped order!\r\n" + "Errors:\r\n" +
ex.getMessage() + "\r\nInput:  \r\n" 
   + in.getBody(String.class));
}

But even if I just leave a logging statement, and don't alter anything in
the exchange, the exception gets thrown (just after the logging statement
has been executed).
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/onException-and-process-tp2740331p2796463.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to