Re: dealing with exceptions in onExceptions definitions

2019-02-11 Thread Dennis Holunder
; > > > logs the error > > > > .handled(true) > > > > .process().body(Pojo.class, processor::update) // > > > > throws UpdateException > > > > .to(direct:logerrors) > > > > .end()

Re: dealing with exceptions in onExceptions definitions

2019-02-08 Thread Claus Ibsen
> > logs the error > > > .handled(true) > > > .process().body(Pojo.class, processor::update) // > > > throws UpdateException > > > .to(direct:logerrors) > > > .end() > > &g

Re: dealing with exceptions in onExceptions definitions

2019-02-08 Thread Dennis Holunder
.to(direct:logerrors) > > .end() > > > > Regards, > > Dan > > > > -- > Claus Ibsen > - > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 > > > __

Re: dealing with exceptions in onExceptions definitions

2018-12-03 Thread Claus Ibsen
Hi This is by design, to avoid circular onException to trigger in endless. So try to design your error handling in a more safe manner On Tue, Nov 13, 2018 at 10:23 AM Dennis Holunder wrote: > > Hello, > > I have two onException definitions which catch exceptions and send > them to

dealing with exceptions in onExceptions definitions

2018-11-13 Thread Dennis Holunder
Hello, I have two onException definitions which catch exceptions and send them to direct:logerrors endpoint. The second exception might throw an exception which should be caught and handled by the first one. But this doesn't work. The FatalFallbackErrorHandler kicks in and as the result the