Yes I want to do in XML only. Adding below two lines will cover these two exception. But I am not sure about other (all) FTP related exception.
Basically I need a list, what all exception will occur in case of FTP used. So i can add that exception in <onWhen> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to <XXX file system location> OR org.apache.camel.component.file.GenericFileOperationFailedException: Cannot store file: <XXX file system location> >>>>>>>>>>>>>>> <onWhen><simple>${exception.message} contains 'connect to'</simple><onWhen> <onWhen><simple>${exception.message} contains 'store file'</simple><onWhen> >>>>>>>>>>>>>>> -- View this message in context: http://camel.465427.n5.nabble.com/Exception-handling-for-camel-ftp-tp5732051p5732063.html Sent from the Camel - Users mailing list archive at Nabble.com.