Its the FTP server that returns the errors. So you should go look for
the FTP error codes. There is some standard codes. So google and find
them.

And as said you can use getCode on the exception to get the code, and
use that in your check instead of the error message text.

On Mon, May 6, 2013 at 9:54 AM, sarfaraj <sarfarajsay...@gmail.com> wrote:
> I can see one more exception now
>
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed:  Connection closed without indication
>
> How can I confirm that all exception covered using <onWhen>
>
> Its very difficult for me to find all . Can someone tell me what is the best
> way to cover all FTP exception? I don't want to miss any, also don't want to
> retry in case of local file error i.e. file:src/target.
>
> /Sarfaraj
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Exception-handling-for-camel-ftp-tp5732051p5732070.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to