pub enum ErrorCode {
Show 27 variants
Graph,
Execution,
Checkpoint,
Interrupt,
Interrupted,
Subgraph,
InvalidUpdate,
EmptyChannel,
EmptyInput,
TaskNotFound,
Timeout,
RecursionLimit,
GraphRecursionLimit,
RecursionLimitExceeded,
InvalidConcurrentUpdate,
InvalidNodeReturnValue,
MultipleSubgraphs,
InvalidChatHistory,
Cancelled,
MultipleWriters,
TaskPanicked,
NodeFailed,
BudgetExceeded,
Serialize,
Llm,
NodeTimeout,
ParentCommand,
}Expand description
Error code categorizing the error type
Mirrors ErrorKind but is public, enabling callers to match on
error categories without accessing private implementation details.
Variants§
Graph
Graph construction error
Execution
Graph execution error
Checkpoint
Checkpoint persistence error
Interrupt
Human-in-the-loop interrupt signal
Interrupted
Human-in-the-loop interrupted execution
Subgraph
Subgraph error
InvalidUpdate
Invalid state update
EmptyChannel
Channel value is empty
EmptyInput
Graph input is empty
TaskNotFound
Task not found
Timeout
Operation timed out
RecursionLimit
Recursion limit exceeded
GraphRecursionLimit
Graph recursion limit exceeded
RecursionLimitExceeded
Recursion limit exceeded (alternative name)
InvalidConcurrentUpdate
Invalid concurrent update detected
InvalidNodeReturnValue
Invalid node return value
MultipleSubgraphs
Multiple subgraphs detected
InvalidChatHistory
Invalid chat history
Cancelled
Execution was cancelled
MultipleWriters
Multiple writers on a replace channel
TaskPanicked
Task panicked during execution
NodeFailed
Node execution failed
BudgetExceeded
Budget exceeded
Serialize
Serialization error
Llm
LLM provider error
NodeTimeout
Node timeout error
ParentCommand
Subgraph-to-parent routing command
Trait Implementations§
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.