Re: Camel rest route w Spring ControllerAdvice?

2021-03-03 Thread Claus Ibsen
Hi They are 2 different things - one is spring specific. And the other is Camel. You cannot magically have spring exception thingy know about camel route exceptions. On Wed, Mar 3, 2021 at 1:49 AM Stephen Bassett wrote: > > I have a Spring app. I created an ExceptionHandler class and annotated

Camel rest route w Spring ControllerAdvice?

2021-03-02 Thread Stephen Bassett
I have a Spring app. I created an ExceptionHandler class and annotated it with @ControllerAdvice. Exceptions thrown from my app are handled there. However, an exception thrown from within a Camel route that is a @RestController and has a restI() route will not be handled in my ExceptionHandler