Hi, If your intention is to handle the exception in your processor and then continue processing along the original route then you can do the following
public void configure() throws Exception { // tell Camel to handle and continue when this exception is thrown onException(IllegalArgumentException.class).*process(doSomething).continued(true);* from("direct:start") .to("mock:start") .throwException(new IllegalArgumentException("Forced")) .to("mock:result"); } Cheers, Ashwin... ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/Set-different-exception-on-exchange-at-the-processor-tp4615500p4615943.html Sent from the Camel - Users mailing list archive at Nabble.com.