Node error
Classes:
| Name | Description |
|---|---|
NodeError |
Exception raised when a node encounters an error. |
Attributes:
| Name | Type | Description |
|---|---|---|
logger |
|
Attributes¶
Classes¶
NodeError
¶
Bases: GraphError
Exception raised when a node encounters an error.
This exception is used for errors specific to nodes within a graph.
Example
from agentflow.exceptions.node_error import NodeError raise NodeError("Node failed to execute")
Methods:
| Name | Description |
|---|---|
__init__ |
Initializes a NodeError with the given message. |
Source code in agentflow/exceptions/node_error.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |
Functions¶
__init__
¶
__init__(message)
Initializes a NodeError with the given message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Description of the node error. |
required |
Source code in agentflow/exceptions/node_error.py
20 21 22 23 24 25 26 27 28 | |