Skip to main content

Error Handler

The error handler is a special flow step that is executed when an error occurs in the flow.

If defined, the error handler will take as input, the result of the step that errored (which has its error in the 'error field').


Steps are retried until they succeed, or until the maximum number of retries defined for that spec is reached, at which point the error handler is called.

You can write error handler scripts in:

On the Hub, two examples of error handlers are provided:

Example

For instance, when building a workflow to automatically populate a CRM details from an email, it was decided to set an Error Handler to still add the email on the CRM in case of error and not lose the contact's email.


Error Handler Example