camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (Updated) (JIRA) <>
Subject [jira] [Updated] (CAMEL-4576) Make exception throwing as flexible in XML as in Java DSL
Date Mon, 24 Oct 2011 22:30:32 GMT


Christian Müller updated CAMEL-4576:

    Comment: was deleted

(was: Did you checked already the examples here [1]? I'm wondering whether this already does
what you want:

<throwException ref="forced"/>

You can initialize your exception as you want and refer to it from the throwException expression.

> Make exception throwing as flexible in XML as in Java DSL
> ---------------------------------------------------------
>                 Key: CAMEL-4576
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>              Labels: exception, throwException, xml
> When throwing exceptions there are more options in the java DSL (one has full control)
than in the XML where you can only reference an exception instance.
> It would be useful to be able to construct the exception and throw it, so that one could
add messages to it - preferably like:
> {noformat}
> throwException class="someEx" message="someProblem ${body} ${in.header.someHeader}
> {noformat}
> Reference:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message