Exceptions API Reference
Hierarchy
Exception
└── DLGError
├── GraphValidationError
│ ├── StaticLoopException
│ ├── UnreachableNodeException
│ ├── MixedRoutingConflict
│ ├── SendTargetError
│ └── SubgraphCompatibilityError
├── NodeTimeoutException
├── CheckpointerMissingError
└── SchemaVersionMismatch
All exceptions carry message: str and context: dict.
Context Keys
Exception |
context keys |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
from dlg import DLGValidator, UnreachableNodeException
try:
DLGValidator(config).validate()
except UnreachableNodeException as e:
print(f"Node '{e.context['node_name']}' is unreachable")