Throws an Exception
The Throws an Exception mapping (exceptionmapping) inspects the JSON node at the from path for an array of objects containing message fields. If such fields are found, it throws a RuntimeException with their combined contents. This mapping is used to interrupt processing when validation or semantic errors are encountered in the message payload.
Attributes for Throws an Exception
| Attribute | Required | Description |
|---|---|---|
| from | Y | Defines the source field for the mapping. |
| to | Y | Defines where the result should be inserted. |
| Function | Y | Should be set to "Throws an exception". |
| Funtion Type | Y | Must be "Enrichment" |