Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97CBC1085A for ; Mon, 6 May 2013 20:09:40 +0000 (UTC) Received: (qmail 6968 invoked by uid 500); 6 May 2013 20:09:40 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 6941 invoked by uid 500); 6 May 2013 20:09:40 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 6933 invoked by uid 99); 6 May 2013 20:09:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 20:09:39 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2013 20:09:35 +0000 Received: by mail-ie0-f169.google.com with SMTP id u16so3302263iet.14 for ; Mon, 06 May 2013 13:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=AwfNMuc7tqcrOVCrsqulYHre7JiyG1rbSNY3LwiWkpg=; b=DUaARnbrFFA5N+xqdBhRz4k4F4dcQKEKse5vSlPhEPcpbFaknc/VZ0YvNHLLzmfc1W CNNeSw89c41edwRkQ+Lwev7VuAr/mF36dBwZ7R3oSBfroFMAo9c0Aoxsr8cwaOtZDxGI QI995QPbUPGtlwCTS9UZodTC1UGstcYKo4tQxO9/l0nCXBWBTCLo18kk+L347WKmPM7+ ySPZy5Olw4Kw1+8YfTDluCoQPk48l0dy4fU4wd+MmdrN7EH24kukqd2Dd2noiANKC1nH 5zmW9YEcvpAxSNcuDXQuhghf2r2bygRmDtGJfOzoFl7Id4hpzlov2L1WbgR/E9hc+kV2 paTw== X-Received: by 10.42.204.79 with SMTP id fl15mr7661252icb.57.1367870954150; Mon, 06 May 2013 13:09:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.25.67 with HTTP; Mon, 6 May 2013 13:08:53 -0700 (PDT) In-Reply-To: <1367826877679-5732070.post@n5.nabble.com> References: <1367818256753-5732051.post@n5.nabble.com> <1367820013756-5732056.post@n5.nabble.com> <1367824140976-5732063.post@n5.nabble.com> <1367824207439-5732065.post@n5.nabble.com> <1367826877679-5732070.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 6 May 2013 22:08:53 +0200 Message-ID: Subject: Re: Exception handling for camel-ftp To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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 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 > > 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