I'm new to Mule and still trying to wrap my head around Errors and Error Handling.
I would like my sub-flow to "throw" a custom error with additional data.
The Raise error
connector only supports Type
and Description
(Where description is a static string).
I have noticed that some connectors errors contain an additional attribute errorMessage
which they use to add additional information.
My questions are:
- Is it possible to add additional data to
Raise error
connector generated error? - How do I generate an error with
errorMessage
attribute? - Is there a "correct" way to Raise and handle errors that I'm missing.
Thanks.