You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2016/07/07 11:28:25 UTC

Re: @Consumed exchange argument does not contain exceptions

See this FAQ
http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html

On Thu, Jul 7, 2016 at 1:11 PM, Alberto <ab...@inogs.it> wrote:
>
> Hello,
>
> I need to set a field in a JPA entity only if there are not exceptions.
> I use @Consumed annotation. The method is always called and, in case of
> exception during routing, the exchange parameter does not contain any
> exception and isFailed() method is always false.
>
> Is it a "normal" behaviour?
>
> How can I handle this situation?
>
> Regards
>
> Alberto



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2