Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Throw error ​

The Throw error action allows you to manually trigger an error in your workflow. This is useful for handling logical errors (like invalid user input) or for stopping a workflow when something goes wrong.

How it works ​

When this action is executed:

  1. The current workflow branch stops immediately.
  2. If the action is inside a Try/Catch block, the Catch branch is triggered.
  3. If not, the error bubbles up to the nearest parent Try/Catch. If there is no parent Try/Catch, the workflow stops and the error appears in the logs and debugger.

Configuration ​

You can customize the error details in the side panel:

OptionDescription
MessageA readable description of the error (e.g. "Invalid email format"). This becomes the message property on the caughtError object (available as caughtError.message).
CauseOptional additional details (e.g. "validation_failed"). This becomes the cause property on the caughtError object (available as caughtError.cause).

Example use case with Try/Catch ​

Commonly used for validating data before proceeding with an action.

1
Validate input
Use an If action to check if a required field is missing or invalid.
2
Throw error
Inside the True branch, add a Throw Error action with a clear Message like 'Field is required'.
3
Handle in Catch
Wrap this in a Try/Catch block. In the Catch branch, use an action like Open popup and bind its text to caughtError.message so the user sees what went wrong.

CONTINUE LEARNING

Now that you know how to raise custom errors, learn how to catch and handle them with Try/Catch:

Handling errors with Try/Catch →