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.b...@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