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 BFBF876DD for ; Wed, 23 Nov 2011 13:25:52 +0000 (UTC) Received: (qmail 97696 invoked by uid 500); 23 Nov 2011 13:25:52 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 97654 invoked by uid 500); 23 Nov 2011 13:25:52 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 85723 invoked by uid 99); 23 Nov 2011 13:18:48 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Date: Wed, 23 Nov 2011 05:18:22 -0800 (PST) From: majiedahamed To: users@camel.apache.org Message-ID: <1322054302434-5016627.post@n5.nabble.com> In-Reply-To: References: <1322031453200-5015714.post@n5.nabble.com> <1322047034843-5016288.post@n5.nabble.com> <1322053051852-5016570.post@n5.nabble.com> Subject: Re: Catch camel exception in java code MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The camel version is 2.4 1)the original code is +++++++++++++++ org.apache.camel.processor.validation.SchemaValidationException org.xml.sax.SAXParseException org.apache.camel.ValidationException java.lang.Exception true 2) My class is public class MyBean { public void doSomething(Object body, Exception cause) { cause.printStackTrace(); } } 3)Bean decleration is Please suggest should i use parameter to the below and try ? -- View this message in context: http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016627.html Sent from the Camel - Users mailing list archive at Nabble.com.