# Exception block

Node type `exceptionBlock`

## What it does

Run steps associated with a parent node's failure handling policy.

## Desktop client configuration

![Success and failure branches on the canvas](/assets/exception-block-en.b122acdab2f13976f87aaec78795b75a773e562f867f0a0891771faad302f79d.0538f3a9.webp)

![Exception handling settings on the parent node](/assets/exception-block-settings-en.b727f2d1f6296b90dd710198048455becbf554daa9cea20f43fd622cf4432f38.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

Paths are relative to the complete node.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `id` | `string` | Yes | — | `minLength = 1`, `maxLength = 128` |
| `meta` | `object` | No | — | Optional opaque display JSON. Unknown nested keys are preserved; no runtime semantics. Omission on replacement removes it; untouched nodes retain it. |
| `type` | `"exceptionBlock"` | Yes | — | — |
| `data` | `object` | No | — | — |
| `data.title` | `string` | No | — | — |
| `data.description` | `string` | No | — | — |
| `data.inputs` | `object` | No | — | — |
| `data.outputs` | `object` | No | — | — |
| `blocks` | array<`WorkflowNode`> | Yes | — | — |


## Mode requirements and limits

- This node belongs only to a node set to "Run exception handling branch" (data.exception.mode=branchHandle). That node has exactly two exception blocks: the first is the success branch and the second is the failure branch. If the parent node ultimately succeeds, only the success branch runs; if it ultimately fails, only the failure branch runs. Execution then continues with the following nodes.
- Field paths of structure nodes are relative to the complete node. For end, defaults refers to data.inputsValues. For other details, see workflow.md.
- Validation code `RPA_STRUCTURE_INVALID`


## Outputs

No dedicated business output.

## JSON example

Exception blocks belong to a node whose `data.exception.mode` is `branchHandle`. The first block is the success branch and the second is the failure branch.

```json
{
  "id": "open_shop",
  "type": "browser_newPage",
  "data": {
    "title": "Open the shop in a new tab",
    "browserAction": "newPage",
    "browserUi": {
      "inputs": {
        "openMode": "url",
        "url": "https://example.com/shop"
      },
      "exception": {
        "policy": "handle",
        "retry": true,
        "retryTimes": 2,
        "retryInterval": 2,
        "screenshot": true
      }
    },
    "exception": {
      "mode": "branchHandle"
    }
  },
  "blocks": [
    {
      "id": "open_ok",
      "type": "exceptionBlock",
      "data": {
        "title": "Shop opened"
      },
      "blocks": []
    },
    {
      "id": "open_failed",
      "type": "exceptionBlock",
      "data": {
        "title": "Shop failed to open"
      },
      "blocks": [
        {
          "id": "wait_before_next",
          "type": "browser_waitTime",
          "data": {
            "title": "Wait before the next step",
            "browserAction": "waitTime",
            "browserUi": {
              "inputs": {
                "timeoutType": "fixed",
                "timeout": 1000
              },
              "exception": {
                "timeout": 30000,
                "policy": "interrupt"
              }
            }
          }
        }
      ]
    }
  ]
}
```

[Back to the node catalog](/browser-rpa/nodes)