Appearance
Try/Catch
The Try/Catch action allows you to handle errors gracefully in your workflows. Instead of stopping the entire workflow when an error occurs (like a failed API call), you can define a specific Catch path to handle the situation—for example, by returning an error response to the caller or logging the error for debugging.
How it works
This action works by creating a special block with up to two distinct branches:
How errors are triggered
The Catch branch executes when an error occurs in the Try branch. This happens in two ways:
Automatically — When an action fails (e.g., an API request returns an error, a database query fails).
Manually — When you use the Throw Error action. This allows you to stop execution and handle logic errors (like invalid inputs or failed validation).
The Error Object
When an error is caught, the Try/Catch action exposes a caughtError object that contains details about what went wrong. You can access the values of the error in the binding panel in the lightning bolt tab.
The object contains the following properties:
| Property | Type | Description |
|---|---|---|
message | String | A readable description of the error (e.g., "Network Error" or "Email is required"). |
name | String | The name/type of the error. |
cause | String/Object | Additional technical details or the underlying cause of the error (if available). |
When using the Throw error action, you are able to manually define the message and cause that gets passed.
You can bind these values to other actions in your Catch block. For example, you can bind a Send response action’s message to caughtError.message to return a clear error to the API Endpoint caller.
Advanced Patterns
Using with "Throw Error"
The Throw Error action is the perfect companion to Try/Catch. While system errors (like a failed API request) trigger the Catch block automatically, you can also trigger it manually using Throw Error.
Here is an example use case with logical validation:
Try
Catch
In this flow, both an automatic error AND a manual Throw error action are handled by the same Catch block.
Re-throwing Errors
Sometimes you may want to handle an error (for example, log it) but also stop the workflow so it does not continue.
CONTINUE LEARNING
Learn how to call your API Endpoints from the interface.

