Hi

The Exchange.getException() method is based on Throwable. I think this
is wrong and we should change it to Exception.

We should let the java.lang.Error left alone to the JDK itself to
handle it, so end users cannot try .. catch(Throwable) and thus
hide java.lang.OutOfMemoryError etc.

The camel-core has this issue as well with catching Throwables around
its code. It should only catch Exception.
And I am prepareing a patch to fix this.

Any objections to change it to Exception and fix the camel-core?



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Reply via email to