camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Exception handling in Camel Routes.
Date Fri, 13 Jul 2012 02:56:44 GMT
You can use the try ... catch ... finally DSL[1]  if you want to check 
the exception you want per route.
The "onException" is a more generic way to handle the exception per 


On Fri Jul 13 00:09:02 2012, smadarapu wrote:
> I think i figured it out, the "onException" set up is per RouteBuilder and
> not per Route, so I removed the onException setup from route to the route
> builder and it is working as i want it.
> What i still don't understand is why does the Route definition supports the
> "onException" setup, what is the purpose?
> Also the per route builder setup adds a limitation that I cannot have the
> definition of two routes (in the same RouteBuilder class) that need
> different handling of the same exception.
> Thanks
> Srikanth
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Blog: (English) (Chinese)
Twitter: willemjiang
Weibo: willemjiang

View raw message