Hi,
I have the following exception handling in one of the route,Camel is
catching the exception given in the list into the log file.All i want is to
catch the same exception in java code to handle with some logic.I wanted to
format a response message with the faliure flag and exception description
Thank you so much
Can you please elaborate on bean paramater binding with camel for Exception
object
Fot this case what will be the below details
..
Public class MyBean{
// ?? variables types in beans
public void doSomething(Object body, Exception cause) {
}
Thanks..
I went through the link
1)
2)
..
3)My class goes like this
public void doSomething(Object body, Exception cause) {
cause.printStackTrace();
}
And in the route when the exeption occurs,It is not printing the exception
I also tried
Sorry class is like this
public class MyBean {
public void doSomething(Object body, Exception cause) {
cause.printStackTrace();
}
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016574.h
The camel version is 2.4
1)the original code is
+++
org.apache.camel.processor.validation.SchemaValidationException
org.xml.sax.SAXParseException
org.apache.camel.ValidationException
java.lang.Exception
tru
Also please suggest how can i use
@ExchangeException To bind to an Exception set on the exchange (Camel 2.0)
here ..!!
--
View this message in context:
http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016642.html
Sent from the Camel - Users mailing list archive a
Thanks ..it is working,there was problem in my war
--
View this message in context:
http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016667.html
Sent from the Camel - Users mailing list archive at Nabble.com.