You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kumar <ku...@touchpeaksoftware.com> on 2016/10/31 10:00:37 UTC
How to disable errorHandle in subroutes in Spring DSL
Hi All,
I have been looking for , how to disable errorhandle in subroute in order to
catch exception in Parent route.
I have seen couple of examples in java dsl but not in spring dsl ?
Thanks,
Kumar
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-disable-errorHandle-in-subroutes-in-Spring-DSL-tp5789508.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to disable errorHandle in subroutes in Spring DSL
Posted by kumar <ku...@touchpeaksoftware.com>.
Hi Claus,
I dont have sub element under route with errorHandler. So I still not
getting how to configure that.
But i have taken other approach with try.catch. with handled as false.
<doCatch>
<exception>java.lang.Exception</exception>
<handled><constant>false</constant></handled>
<doCatch>
Now it propogates.
Thanks for help guys.
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-disable-errorHandle-in-subroutes-in-Spring-DSL-tp5789508p5789517.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to disable errorHandle in subroutes in Spring DSL
Posted by Claus Ibsen <cl...@gmail.com>.
You can configure the sub route to use noErrorHandler as the error handler.
On Mon, Oct 31, 2016 at 11:00 AM, kumar <ku...@touchpeaksoftware.com> wrote:
>
> Hi All,
>
> I have been looking for , how to disable errorhandle in subroute in order to
> catch exception in Parent route.
> I have seen couple of examples in java dsl but not in spring dsl ?
>
> Thanks,
> Kumar
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-disable-errorHandle-in-subroutes-in-Spring-DSL-tp5789508.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
Re: How to disable errorHandle in subroutes in Spring DSL
Posted by fabryprog <fa...@bizmate.it>.
Hello,
instead of using errorHandle you can use try catch sintax:
http://camel.apache.org/try-catch-finally.html
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-disable-errorHandle-in-subroutes-in-Spring-DSL-tp5789508p5789510.html
Sent from the Camel - Users mailing list archive at Nabble.com.