You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Johan Edstrom (JIRA)" <ji...@apache.org> on 2010/10/14 23:34:40 UTC

[jira] Updated: (CAMEL-1823) doCatch(Predicate)

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

Johan Edstrom updated CAMEL-1823:
---------------------------------

    Attachment: 0001-https-issues.apache.org-activemq-browse-CAMEL-1823.patch

Enables doCatch(Predicate)



> doCatch(Predicate)
> ------------------
>
>                 Key: CAMEL-1823
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1823
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: Future
>
>         Attachments: 0001-https-issues.apache.org-activemq-browse-CAMEL-1823.patch
>
>
> As someone suggested on the user forum.
> Letting {{doCatch}} be able to catch and react to a predicate as well. Currently it *only* reacts when an exception has been thrown.
> Letting it react to predicates as well will really set it high over its Java counter part.
> {code}
> doTry()
>    .beanRef("myBean")
>    .to("activemq:queue:foo")
> .doCatch(body().isNull())
>    .to("log:foo?level=WARN")
> .end()
> {code}

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