Docs
Sign in

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 to add: A Try / Catch node with its body, success and catch outputs, and its settings panel.

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

FieldWhat it doesNotes
Catch all exceptionsCatches every kind of errorOn by default
Exception types (one per line)Limits the catch to named error typesOnly shown when Catch all exceptions is off. Hint "e.g. TimeoutError, ValidationError"
Error output keyThe name the caught error is stored underDefault error
Include finally blockAdds a finally outputOff by default

Inputs and outputs

HandleWherePurpose
InputTopThe step that comes before
bodyRightConnect the steps you want to protect
successBottom, left (green)The path when the body finishes without an error
catchBottom, right (red)The path when an error is caught
finallyLeftOnly 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.

  1. Connect the step that calls the service to the body output.
  2. Leave Catch all exceptions on and keep Error output key as error.
  3. Connect success to the next normal step.
  4. 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.