---
title: "Error Handling"
description: "Strategy Behavior stop Stop the workflow immediately (default) skip Skip the failed step, continue with next retry Retry the failed step N times"
resource: https://www.aiagents.nexus/docs/manual/workflows/error-handling
generated: { by: "process:nexus-agent-assets", at: 2026-09-07T09:13:03Z }
status: stable
---

# Workflow Error Handling

## Strategies

| Strategy | Behavior |
|----------|----------|
| **stop** | Stop the workflow immediately (default) |
| **skip** | Skip the failed step, continue with next |
| **retry** | Retry the failed step N times |

## Configuration

```yaml
workflows:
  data-pipeline:
    onError: stop
    retries: 3
    retryDelay: 5
    steps:
      - name: fetch-data
        agent: fetcher
        onError: retry
        retries: 5
      - name: clean-data
        agent: cleaner
```

## Stop Strategy

```
Step 1 ✓ → Step 2 ✗ → STOP
```

## Skip Strategy

```
Step 1 ✓ → Step 2 ✗ → Step 3 ✓ (receives Step 1's output)
```

## Retry Strategy

```
Step 1 ✓ → Step 2 ✗ → retry → Step 2 ✗ → retry → Step 2 ✓ → Step 3
```
