You can also turn off error handler on your sub routers, by configuring them to use noErrorHandler.
Or use the doTry .. doCatch in the parent route when calling sub routes to force no error handling in sub routes. On Thu, Sep 12, 2013 at 8:53 PM, fbarbat <fbar...@gmail.com> wrote: > Hi, > > I cannot use a global onException because different actions have to be taken > on different routes to handle the exceptions. Besides, I'm handling > NoSuchElementException which is a very generic exception and handling should > be restricted to a specific route. > > Just to be sure, OnException never handles exceptions from "inner" routes, > right? > > Anyway, I'll think how to structure routes in a different way so I can > handle this case. > > Thanks! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/DefaultErrorHandler-and-nested-routes-tp5739261p5739278.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen