camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to throw an exception from camel route
Date Tue, 08 Mar 2016 06:21:12 GMT
There is a <throwException> you can use from Spring DSL.

On Thu, Mar 3, 2016 at 3:43 PM, ravivadgaonkar
<vadgaonkar.ravi@gmail.com> wrote:
> I am calling a camel route from java class using a proxy.
> I wanted the camel route to throw an exception on certain condition (in my
> case when it hits 404 response).
> The java class needs to be capable for catching this exception and and
> process further.
>
> Please let me know how to achieve this. I am using spring DSL for the same.
>
> Thanks.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-throw-an-exception-from-camel-route-tp5778549.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Mime
View raw message