# Handling Pipeline errors #

You can specify how to respond to errors in a pipeline globally, with an error policy, and locally, by overriding the policy on the node level\. You can also create a custom error\-handling response\.

## Setting global error policy ##

The error policy sets the default behavior for errors in a pipeline\. You can override this behavior for any node in the pipeline\.

To set the global error policy:

<!-- <ol> -->

1.  Click the **Manage default settings** icon on the toolbar\.
2.  Choose the default response to an error under the **Error policy**:
    
    <!-- <ul> -->
    
     *  **Fail pipeline on error** stops the flow and initiates an error-handling flow.
     *  **Continue pipeline on error** tries to continue running the pipeline.
        
        Note: **Continue pipeline on error** affects nodes that use the default error policy and does not affect node-specific error policies.
    
    <!-- </ul> -->
    
3.  You can optionally create a custom error\-handling response for a flow failure\.

<!-- </ol> -->

## Specifying an error response ##

If you opt for **Fail pipeline on error** for either the global error policy or for a node\-specific policy, you can further specify what happens on failure\. For example, if you check the **Show icon on nodes that are linked to an error\-handling pipeline**, an icon flags a node with an error to help debug the flow\.

## Specifying a node\-specific error policy ##

You can override the default error policy for any node in the pipeline\.

<!-- <ol> -->

1.  Click a node to open the configuration pane\.
2.  Check the option to **Override default error policy with:**
    
    <!-- <ul> -->
    
     *  **Fail pipeline on error**
     *  **Continue pipeline on error**
    
    <!-- </ul> -->
    
<!-- </ol> -->

## Viewing all node policies ##

To view all node\-specific error handling for a pipeline:

<!-- <ol> -->

1.  Click **Manage default settings** on the toolbar\.
2.  Click the **view all node policies** link under **Error policy**\.

<!-- </ol> -->

A list of all nodes in the pipeline show which nodes use the default policy, and which override the default policy\. Click a node name to see the policy details\. Use the view filter to show:

<!-- <ul> -->

 *  **All error policies**: all nodes
 *  **Default policy**: all nodes that use the default policy
 *  **Override default policy**: all nodes that override the default policy
 *  **Fail pipeline on error**: all nodes that stop the flow on error
 *  **Continue pipeline on error**: all nodes that try to continue the flow on error

<!-- </ul> -->

## Running the Fail on error flow ##

If you specify that the flow fails on error, a secondary error handling flow starts when an error is encountered\.

## Adding a custom error response ##

If **Create custom error handling response** is checked on default settings for error policy, you can add an error handling node to the canvas so you can configure a custom error response\. The response applies to all nodes configured to fail when an error occurs\.

**Parent topic:**[Creating a pipeline](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/ml-orchestration-create.html)

<!-- </article "role="article" "> -->