Skip to main content

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

AttributeRequiredDescription
FromYesDefines the source field for the mapping.
ToYesDefines where the result should be inserted.
PrecedenceYesDetermines the order in which this mapping is applied relative to others.
Function TypeYesMust be "Enrichment/lookup functons"
FunctionYesShould be set to "Throws an exception".