You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/01/03 13:04:05 UTC

[jira] Resolved: (CAMEL-1218) onException DSL should only be possible to set at top level (not within routes)

     [ https://issues.apache.org/activemq/browse/CAMEL-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1218.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 1.5.1)
                       (was: 2.0.0)

> onException DSL should only be possible to set at top level (not within routes)
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-1218
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1218
>             Project: Apache Camel
>          Issue Type: Sub-task
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> The ErrorHandlerBuilder is global per route context so the DSL should only allow you to set it at highest level to avoid confusing end users.
> So this should *not* be allowed:
> {code}
>                 from("direct:start")
>                     .onException(MyTechnicalException.class).handled(true).end()
>                     .to("bean:doSomething");
> {code}
> But you need to do it as:
> {code}
>                 onException(MyTechnicalException.class).handled(true);
>                 from("direct:start")
>                     .to("bean:doSomething");
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.