Hi,
Can I use both route specific errorHandler and route specific onException in
the same route? Below is sample route.
public void configure() {
from("file:D:/temp/onExceptionTest")
.errorHandler(defaultErrorHandler()
.handled(true)
.log("Inside error handler.")
.loggingLevel(LoggingLevel.WARN))
.onException(Exception.class)
.process(new Processor() {
@Override
public void process(Exchange arg0) throws
Exception {
System.out.println("This is the
exception route.");
}
})
.end()
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception
{
System.out.println("Inside processor 1");
}
})
}
Thanks in advance,
Sathish
--
View this message in context:
http://camel.465427.n5.nabble.com/Can-I-use-both-route-specific-errorHandler-and-route-specific-onException-tp3410510p3410510.html
Sent from the Camel - Users mailing list archive at Nabble.com.