This advanced endpoint allows you to raise an error. If that error is not handled, the current processing chain is aborted with an error. The user will then receive an error page when submitting the form. The error code and error message can be set freely.
In structured programming, this endpoint corresponds to a THROW statement.
Parameters
- Error code
- User defined error code, which can be further used by the variables [%$LAST_ERROR_CODE%]. The use of variables is possible.
- error message
- User defined error message, which can be further used by the variables [%$LAST_ERROR_MESSAGE%]. The use of variables is possible.
- Error data
- Data that can be specified as a further hint to the source of the error. The data must be specified in the form of a JSON object. The use of variables is possible.
Action variables
Actions of type Throw error provide Action variables.
Standard action variables
- [%$<action name>.SUCCESS%]
- Return whether action was successfully executed. Returns Boolean (true/false).
- [%$<action name>.RESULT%]
- Return all results provided by the action in structured form.
- [%$<action name>.ERROR_CODE%]
- The error code thrown in case of an error in the action. Empty if no error occurred.
- [%$<action name>.ERROR_MESSAGE%]
- The thrown error message in the action's error case. Empty if no error occurred.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article