Skip to content

pydantic_graph.exceptions

GraphSetupError

Bases: TypeError

Error caused by an incorrectly configured graph.

Attributes

message

Description of the mistake.

Type: str Default: message

GraphBuildingError

Bases: ValueError

An error raised during graph-building.

Attributes

message

The error message.

Type: str Default: message

GraphValidationError

Bases: ValueError

An error raised during graph validation.

Attributes

message

The error message.

Type: str Default: message

GraphRuntimeError

Bases: RuntimeError

Error caused by an issue during graph execution.

Attributes

message

The error message.

Type: 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

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

Check if the status is valid.

Returns

None