camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
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

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 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message