Page Edited :
CAMEL :
DefaultErrorHandler
DefaultErrorHandler has been edited by Claus Ibsen (Apr 02, 2009). Content:DefaultErrorHandlerThis is the new default error handler in Camel 2.0 onwards. This error handler have a limited set of features. You can use the Exception Clause to catch exceptions and De Tour By default any exception thrown during routing will be propagated back to the caller and the Exchange ends immediately. However you can use the Exception Clause to catch a given exception and lower the exception by marking it as handled. If so the exception will not be sent back to the caller and the Exchange continues to be routed. ExampleIn this route below, any exception thrown in eg the validateOrder bean will be propagated back to the caller, and its the jetty endpoint. It will return a HTTP error message back to the client. from("jetty:http://localhost/myservice/order").to("bean:validateOrder").to("jms:queue:order");
|
Unsubscribe or edit your notifications preferences