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 showing a helpful message to the user or trying a different operation.
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).
Manually — When you use the Throw Error action. This allows you to stop execution and handle logic errors (like invalid inputs).
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 could bind a toast notification's message to the message passed in the error to show the specific error to the user.
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 (e.g. show a toast) but also let the parent workflow know something failed and stop it from continuing.

