camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Exception handling for camel-ftp
Date Mon, 06 May 2013 20:08:53 GMT
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 <sarfarajsayyad@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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message