Re: Translating route exceptions to JSON with Simple Expression Language or SPEL

2012-05-09 Thread Claus Ibsen
; >>     ${exception.message} >> >> >>      {"error":"#{request.body}"} >> >> >> But this seems overkill for such a simple case - is there a simpler way to >> do this? >> >> Should the simple expression fail the

Re: Translating route exceptions to JSON with Simple Expression Language or SPEL

2012-05-09 Thread David Geary
-exceptions-to-JSON-with-Simple-Expression-Language-or-SPEL-tp5696933p5697021.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Translating route exceptions to JSON with Simple Expression Language or SPEL

2012-05-09 Thread Claus Ibsen
kill for such a simple case - is there a simpler way to > do this? > > Should the simple expression fail the way it does with a closing curly > bracket - this was OK before and obviously causes issues in JSON > > Why does SPEL think the exception is null? > > > -- > Vie

Translating route exceptions to JSON with Simple Expression Language or SPEL

2012-05-09 Thread David Geary
auses issues in JSON Why does SPEL think the exception is null? -- View this message in context: http://camel.465427.n5.nabble.com/Translating-route-exceptions-to-JSON-with-Simple-Expression-Language-or-SPEL-tp5696933.html Sent from the Camel - Users mailing list archive at Nabble.com.