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/12/09 08:41:52 UTC
[jira] Resolved: (CAMEL-2269) doCatch() - Without any exception
given should report that as a problem
[ https://issues.apache.org/activemq/browse/CAMEL-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2269.
--------------------------------
Resolution: Fixed
trunk: 888719.
> doCatch() - Without any exception given should report that as a problem
> -----------------------------------------------------------------------
>
> Key: CAMEL-2269
> URL: https://issues.apache.org/activemq/browse/CAMEL-2269
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.0.0, 2.1.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.2.0
>
>
> Code like this
> {code}
> .doTry()
> .to("mock:b")
> .throwException(new IllegalArgumentException("Damn"))
> .doCatch()
> .to("mock:catch")
> .end();
> {code}
> Should report a failure in the route as doCatch must have at least 1 exception as parameter.
> It should correctly be
> .doCatch(Exception.class)
> We could also consider using Excpetion.class as default but in Java you must also provide the exception to catch and thus its more intuitive if its 100% like Java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.