#[non_exhaustive]pub enum ExecutionError {
Hosted(String),
InvalidApproval,
InvalidGateVerdict,
Cancelled,
Gate(GateOperationError),
Mapping(MappingError),
}Expand description
A fatal or cancellation outcome from routing one local call.
Unknown tool names are deliberately absent: an unexposed name is an ordinary business rejection, not a control-path failure, so the model can be told about it in the transcript instead of the Run failing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Hosted(String)
A hosted/model-native capability was sent to the local path.
InvalidApproval
Admission facts were invalid.
InvalidGateVerdict
The gate returned an invalid verdict.
Cancelled
Cancellation won the control path.
Gate(GateOperationError)
A gate operation failed rather than denied.
Core never constructs Gate with
GateOperationError::Cancelled; that path is always Self::Cancelled.
A consumer-built Gate(Cancelled) is not equal to Self::Cancelled and
ranks as a fatal latch failure, not a cancellation.
Mapping(MappingError)
Output mapping failed fatally.
Trait Implementations§
Source§impl Clone for ExecutionError
impl Clone for ExecutionError
Source§impl Debug for ExecutionError
impl Debug for ExecutionError
Source§impl Display for ExecutionError
impl Display for ExecutionError
impl Eq for ExecutionError
Source§impl Error for ExecutionError
impl Error for ExecutionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()