Have you tried using the “NoErrorHandler”? http://camel.apache.org/error-handler.html <http://camel.apache.org/error-handler.html>
> On May 4, 2017, at 10:34 AM, las <laska...@gmail.com> wrote: > > I have a route and an onException definition. My exception processor is > getting called. But the exception or error I throw in exception processor is > not getting bubbled to the client. > > RouteBuilder builder = new RouteBuilder() { > public void configure() { > // onException(Exception.class).bean("bean"); > > onException(Exception.class).to("anotherProcessor"); > > from("queue:a").bean("someBean").to("processor"); > } > }; > > The exception or error gets trapped by fatalfallbackerrorhandler and the > route ends successfully. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Re-throwing-exception-tp5798653.html > Sent from the Camel - Users mailing list archive at Nabble.com.