pub enum CommandError {
UnsupportedProtocolVersion {
expected: u32,
observed: u32,
},
NeedsInput(Vec<Clarification>),
Migration(EngineError),
Store(StoreError),
Tracking(TrackingError),
Execution(ExecutorError),
Parse(String),
Inspection(InspectionError),
Invalid(String),
}Expand description
Structured semantic or host-adapter failure from runner command execution.
Variants§
UnsupportedProtocolVersion
The host sent a command envelope using an unsupported protocol version.
Fields
NeedsInput(Vec<Clarification>)
Migration generation needs explicit caller-provided clarification decisions.
Migration(EngineError)
Migration lifecycle execution failed.
Store(StoreError)
Migration storage failed before lifecycle execution completed.
Tracking(TrackingError)
Applied-state tracking failed.
Execution(ExecutorError)
SQL preparation or execution failed.
Parse(String)
SQL segmentation failed before database preparation.
Inspection(InspectionError)
Live catalog inspection failed.
Invalid(String)
The host supplied an invalid resolved command.
Implementations§
Source§impl CommandError
impl CommandError
Sourcepub fn diagnostic(&self) -> CommandDiagnostic
pub fn diagnostic(&self) -> CommandDiagnostic
Returns concise shared diagnostic language without discarding the typed error.
Sourcepub fn verbose_causes(&self) -> Vec<String>
pub fn verbose_causes(&self) -> Vec<String>
Returns sanitized internal causes for host-specific verbose diagnostics.
Sourcepub fn failure(&self) -> CommandFailure
pub fn failure(&self) -> CommandFailure
Returns a serializable failure preserving typed clarification requests.
Trait Implementations§
Source§impl Debug for CommandError
impl Debug for CommandError
Source§impl Display for CommandError
impl Display for CommandError
Source§impl Error for CommandError
impl Error for CommandError
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()
Source§impl From<EngineError> for CommandError
impl From<EngineError> for CommandError
Source§fn from(error: EngineError) -> Self
fn from(error: EngineError) -> Self
Preserves clarification suspension as a first-class runner error.