Re: Exception handling with Apache Camel

2015-12-06 Thread Joakim Bjørnstad
Hello, Set up your own logger, for example with slf4j and logback loggers/appenders. private static final Logger LOGGER = LoggerFactory.getLogger(MyRoute.class); onException(Exception.class) .handled(true) .setBody(constant("Parsing Error, please check your input")) .log(LoggingLevel.ERROR

Exception handling with Apache Camel

2015-12-06 Thread Vero Kato
hi, I use Camel Rest and currently when I need to suppress exception in my code and show on a screen nice message, I do like this: onException(Exception.class).handled(true).setBody(constant("Parsing Error, please check your input")).log("error sent back to client"); The only problem is that "err