@ExchangeException does not always bind to the caught Exception

2009-05-18 Thread Joe Gottman
I have a Bean method public String handleJaxbError( @ExchangeException JaxbException e) that is written to handle a thrown JaxbException and is only called inside a doCatch(JaxbException) clause. However, when the parameter e is of type JaxbException, the value of e when the method is executed

Re: @ExchangeException does not always bind to the caught Exception

2009-05-18 Thread Claus Ibsen
Hi Joe Which version of Camel are you using precisely? I do think that we can improve @ExchangeException to be able to find the exception you want in the exception hierarchy. As for instance on trunk you can do: exchange.getException(JaxbException.class) and it will find that exception for you i

Re: @ExchangeException does not always bind to the caught Exception

2009-05-19 Thread Claus Ibsen
Hi Joe I got it. I have reproduced an unit test demonstrating this issue. I have created a ticket to track it: https://issues.apache.org/activemq/browse/CAMEL-1626 Will commit a fix shortly. On Tue, May 19, 2009 at 6:51 AM, Claus Ibsen wrote: > Hi Joe > > Which version of Camel are you using