Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CB33200C54 for ; Wed, 12 Apr 2017 09:32:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B3A3160B95; Wed, 12 Apr 2017 07:32:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B654160B8A for ; Wed, 12 Apr 2017 09:32:17 +0200 (CEST) Received: (qmail 73853 invoked by uid 500); 12 Apr 2017 07:32:16 -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 67139 invoked by uid 99); 12 Apr 2017 07:28:23 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Date: Wed, 12 Apr 2017 00:28:21 -0700 (MST) From: davide_cavestro To: users@camel.apache.org Message-ID: <1491982101343-5797442.post@n5.nabble.com> Subject: Remapping exception from DSL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 12 Apr 2017 07:32:18 -0000 I need to remap exceptions under certain route portions, in such a way that the obtained ones are handled by the custom errorHandler set at context level. I'd like to do it from DSL for readability, avoiding to split routes into too many sub-routes. I've tried using /doTry///doCatch///throwException/ constructs, but the /doCatch/ implementation uses a dedicated errorHandler, that in turns delegates the handling of the thrown exception to a fallback that is not configurable. In the following example /BarException/ is not handled by /myErrorHandler/. *Question*: would it be worth providing a way to set the fallback error handler at the /doCatch/ level? i.e. write something like This ideally wouldn't imply supporting nested catches nor dealing with exception loops. -- View this message in context: http://camel.465427.n5.nabble.com/Remapping-exception-from-DSL-tp5797442.html Sent from the Camel - Users mailing list archive at Nabble.com.