camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Output of exec used for exception handling to enable message redelivery
Date Wed, 14 Oct 2015 15:54:55 GMT
Thats a new feature in Camel 2.16 about the throw exception where you
can define the message dynamically using the simple language.



On Wed, Oct 14, 2015 at 5:48 PM, jamesburn <James.Burn@oup.com> wrote:
> Thanks for the advice.
>
> The problem I've got is with:
>
> <when>
>           <simple>${body} not contains 'HTTP/1.1 200 OK'</simple>
>           <throwException exceptionType="org.example.PdfInvoiceException"
> message="${body}"/>
> </when>
>
> "exceptionType" isn't a valid attribute here, and <simple> expression within
> the element isn't either, only <description>.
>
> <setFaultBody> accepts <simple> but I don't think is usable. Could I
> setHeader or something else?
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Output-of-exec-used-for-exception-handling-to-enable-message-redelivery-tp5772641p5772646.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Mime
View raw message