pub enum ToolProcessingError {
Control(ControlError),
InvalidBatch(BatchError),
NotFreshBatch {
completed: usize,
},
Processor {
phase: ToolProcessorPhase,
index: usize,
error: ProcessorError,
},
InvalidProcessorBatch {
phase: ToolProcessorPhase,
index: usize,
error: BatchError,
},
Handoff {
phase: ToolProcessorPhase,
index: usize,
message: String,
},
ResultRejected {
call_block_id: BlockId,
error: BatchError,
result: ToolResultPayload,
},
}Expand description
Why controlled processing returned the caller’s current batch early.
Variants§
Control(ControlError)
The binding’s parent cancellation or deadline stopped processing.
InvalidBatch(BatchError)
The input or internally produced batch is structurally invalid.
NotFreshBatch
This entry point only accepts new, entirely pending declarations.
Processor
A processor returned its own error.
InvalidProcessorBatch
A processor returned a structurally invalid batch.
Fields
§
phase: ToolProcessorPhaseProcessing phase.
§
error: BatchErrorOriginal batch validation error.
Handoff
A processor violated fixed membership or immutable completed facts.
Fields
§
phase: ToolProcessorPhaseProcessing phase.
ResultRejected
An actual tool result could not be associated with its declaration.
Fields
§
error: BatchErrorOriginal association or installation error.
§
result: ToolResultPayloadActual rejected payload, preserved for diagnosis.
Trait Implementations§
Source§impl Debug for ToolProcessingError
impl Debug for ToolProcessingError
Source§impl Display for ToolProcessingError
impl Display for ToolProcessingError
Source§impl Error for ToolProcessingError
impl Error for ToolProcessingError
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 ToolProcessingError
impl RefUnwindSafe for ToolProcessingError
impl Send for ToolProcessingError
impl Sync for ToolProcessingError
impl Unpin for ToolProcessingError
impl UnsafeUnpin for ToolProcessingError
impl UnwindSafe for ToolProcessingError
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