User-Defined Exception Messages
A user-defined exception message has the following format:
Exception:
(incl. colon) is a fixed token to indicate that this is a user-defined exception message.ExceptionType
specifies the type of the exception and the format of the following Json.ExceptionJson
contains the structured exception.
🔥 Please notice the single quotes are mandatory, especially when replacement variables are used.
ExceptionBase
All exception messages should inherit from this base-class, containing a rootCause
and userMessage
field: (see ExceptionBase)
Examples
The data validation Business Rule failed and there is no way to continue code execution: throw a controlled Exception.
Last updated