camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-2269) doCatch() - Without any exception given should report that as a problem
Date Wed, 09 Dec 2009 05:48:00 GMT
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.


Mime
View raw message