Data privacy notice

 

When this content is loaded, usage information is transmitted to Vimeo and may be processed there.

 

             

Workflow endpoint: Throw error

Modified on Tue, 18 Jul, 2023 at 9:43 AM

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.


CONTENTS

Configuration interface for actions of type Throw error.

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article