If you also use an errorHandler, you should share this code as well. And as
for every request, you should tell us which Camel version do you use...
I suggest to have a look at [1] where we have 50+ OnException tests. Some
with an errorHandler, some without...

[1]
https://fisheye6.atlassian.com/browse/camel-git/camel-core/src/test/java/org/apache/camel/processor/onexception

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Thu, May 30, 2013 at 1:12 AM, salemi <sal...@avaya.com> wrote:

> Hi Claus,
>
> We put the exception after <from> and tried it with inheritErrorHandler
> true
> and false. It seems the exception are not caught by the onException clause.
>
> If we add an errorhandler to the route then the exception get caught by the
> errorhandler. We specified retries on the errorhandler but the redeliveries
> don't get executed.
>
> I am wondering why the exceptions are not caught by onException clause and
> also why the error handler redeliveries are not executed !
>
> Thanks,
> Ali
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Exception-doesn-t-get-cauhgt-in-the-route-tp5733381p5733438.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to