camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa_james <>
Subject Re: Catching Exception
Date Sat, 17 Dec 2016 12:43:23 GMT
So I went back and read the book again, but it does not show how to handle
exception outside of the routing engine. I check the file consumer example
and tried to apply it, but it did not work. This is what I did:

/onException(classOf[Exception]).to("log:was-caught ${body}")


I was excepting an IOException (First ConnectException and Subsequent
DisconnectException) to be caught, but that was not the case. 
What am I missing?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message