You can define how errors, which are not caught by standard error handlers, are handled during a workflow run by adding a global error handler to the workflow schema. You can add one global error handler to a workflow schema.
- Create a workflow.
- Open the workflow for editing in the workflow editor.
- Add some elements to the workflow schema.
- Drag a Default error handler element to the workflow schema.
- (Optional) Add schema elements between the Default error handler element and the Throw exception element to specify how global workflow errors are handled.
You added a global error handler to a workflow. When an error that is not caught by standard error handlers in the workflow occurs, the global error handler performs the specified actions before ending the workflow run.