Try / Catch
The Try / Catch node wraps a set of steps so that an error is sent to a separate path instead of stopping the whole workflow.
Screenshot placeholder
The palette describes it as "Error handling block".
When to use it
Use it around steps that can fail, such as calls to another system, when you would rather handle the problem than stop. For example, you can notify someone or try a different approach.
Settings
| Field | What it does | Notes |
|---|---|---|
| Catch all exceptions | Catches every kind of error | On by default |
| Exception types (one per line) | Limits the catch to named error types | Only shown when Catch all exceptions is off. Hint "e.g. TimeoutError, ValidationError" |
| Error output key | The name the caught error is stored under | Default error |
| Include finally block | Adds a finally output | Off by default |
Inputs and outputs
| Handle | Where | Purpose |
|---|---|---|
| Input | Top | The step that comes before |
| body | Right | Connect the steps you want to protect |
| success | Bottom, left (green) | The path when the body finishes without an error |
| catch | Bottom, right (red) | The path when an error is caught |
| finally | Left | Only present when Include finally block is on |
The node card says "Connect actions to "body"" and summarises what is caught ("all errors" or the types you listed) and whether a finally block is on.
Example
This is an illustrative example. You call an outside service that is sometimes slow.
- Connect the step that calls the service to the body output.
- Leave Catch all exceptions on and keep Error output key as
error. - Connect success to the next normal step.
- Connect catch to a step that sends an alert, which can read the stored
error.
Tips
- Use finally for clean-up that must happen whether or not an error occurred.
- To catch only some errors, turn off Catch all exceptions and list one type per line. The settings do not show which error type names are valid, so check with the team that owns the failing step.