# pydantic\_graph.exceptions

### GraphSetupError

**Bases:** [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError)

Error caused by an incorrectly configured graph.

#### Attributes

##### message

Description of the mistake.

**Type:** [`str`](https://docs.python.org/3/library/stdtypes.html#str) **Default:** `message`

### GraphBuildingError

**Bases:** [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)

An error raised during graph-building.

#### Attributes

##### message

The error message.

**Type:** [`str`](https://docs.python.org/3/library/stdtypes.html#str) **Default:** `message`

### GraphValidationError

**Bases:** [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)

An error raised during graph validation.

#### Attributes

##### message

The error message.

**Type:** [`str`](https://docs.python.org/3/library/stdtypes.html#str) **Default:** `message`

### GraphRuntimeError

**Bases:** [`RuntimeError`](https://docs.python.org/3/library/exceptions.html#RuntimeError)

Error caused by an issue during graph execution.

#### Attributes

##### message

The error message.

**Type:** [`str`](https://docs.python.org/3/library/stdtypes.html#str) **Default:** `message`

### GraphNodeStatusError

**Bases:** `GraphRuntimeError`

Error caused by trying to run a node that already has status `'running'`, `'success'`, or `'error'`.

#### Methods

##### check

`@classmethod`

```python
def check(cls, status: SnapshotStatus) -> None
```

Check if the status is valid.

###### Returns

[`None`](https://docs.python.org/3/library/constants.html#None)