pub enum ModeError {
StateCorrupted {
message: String,
},
MissingParameter {
param: String,
},
InvalidBranchState {
branch_id: String,
},
LockPoisoned {
resource: String,
},
CheckpointNotFound {
checkpoint_id: String,
},
NodeNotFound {
node_id: String,
},
InvalidConfidence {
value: f64,
},
Timeout {
timeout_ms: u64,
},
ParseError {
context: String,
message: String,
},
}Expand description
Mode-specific execution errors for reasoning operations.
These errors occur during the execution of reasoning modes and provide structured information for debugging and recovery.
Variants§
StateCorrupted
Session state has been corrupted or is inconsistent.
MissingParameter
A required parameter was not provided.
InvalidBranchState
Branch state is invalid for the requested operation.
LockPoisoned
Lock acquisition failed (mutex poisoned or timeout).
CheckpointNotFound
Checkpoint not found for backtracking.
NodeNotFound
Graph node not found.
InvalidConfidence
Invalid confidence value (must be 0.0-1.0).
Timeout
Operation timeout.
ParseError
Parse error when processing mode-specific data.
Trait Implementations§
Source§impl Error for ModeError
impl Error for ModeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ModeError
impl RefUnwindSafe for ModeError
impl Send for ModeError
impl Sync for ModeError
impl Unpin for ModeError
impl UnwindSafe for ModeError
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.