Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.1, 2.0.0
-
None
Description
See nabble
http://old.nabble.com/Exception-handling-...-onException-to26215607.html
onException(UnmarshalException.class).handled(true).to("mock:ue"); onException(Exception.class).handled(true).to("mock:exception"); from("direct:start") .throwException(new UnmarshalException("Could not unmarshal", new IllegalArgumentException("Damn")));
The code above should be handled by the UnmarshalException.class as its the best candidate.