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.1.0, 2.0.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.