Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.8.1
-
N/A
-
Unknown
Description
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:
throwException class="someEx" message="someProblem ${body} ${in.header.someHeader}