You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/07/30 09:42:00 UTC

[jira] [Commented] (CAMEL-16819) Add support fot a configurable ExceptionPolicyStrategy

    [ https://issues.apache.org/jira/browse/CAMEL-16819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17390451#comment-17390451 ] 

Claus Ibsen commented on CAMEL-16819:
-------------------------------------

Can you submit a PR against main branch. Also if possible an unit test would be good with a custom strategy.

> Add support fot a configurable ExceptionPolicyStrategy
> ------------------------------------------------------
>
>                 Key: CAMEL-16819
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16819
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core-model
>    Affects Versions: 3.11.0
>            Reporter: Jose Montoya
>            Priority: Minor
>
> Simply would like to add support for a configurable ExceptionPolicyStrategy. We're specifically looking to reverse the matching order, as to start from the top instead of the bottom. We feel this is more in line with Java's try-catch bevahiour so it's more intuitive to our new developers, and also for some of our devs coming from Mule developement.
>  
> Here's an exploratory implementation: [https://github.com/MS3Inc/camel/commit/8433213caa8664fb5c61c8d1a3ab7bc8e1bdddd8]
> This one makes the default strategy non final which I think may have been the original intent since it has a few protected methods.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)