Yes from Camel 3.0 the simple language would require ${ } syntax. Its a bit to invasive to do this on 2.x
Just add something in from of "exception", eg "An exception was ..." On Mon, Jan 23, 2017 at 10:34 AM, erik_romson <e...@zenior.no> wrote: > Hi > I upgraded camel (2.18.1) and my error handling stopped working. I started > looking at all the wrong places. Anyway I had the log statement > > > .log(LoggingLevel.ERROR, "exception was caught when doing xyz") > > > where the exception was expanded and tried to find the method " was caught > when doing xyz" > > after reading the documentation, I can see that you can now write simple > language without ${} (since 2.8) and when I look at > org.apache.camel.language.simple.ast.SimpleFunctionExpression#createSimpleExpressionDirectly > I can see that it is the case. > > Is this intentional? To find the method " was caught when doing xyz", I > mean. Is it possible to turn this new feature off? I isn't uncommon to use > the words "body" "exception" and "property" in log statments. > > See attached sample WeirdErrorTest.java > <http://camel.465427.n5.nabble.com/file/n5793002/WeirdErrorTest.java> . > > > Thanks > > Erik Romson > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/simple-variable-expansion-for-exception-and-finding-method-tp5793002.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2