#[non_exhaustive]pub enum Error {
Binding(Box<Failure>),
NativeValidation {
word: Box<NativeWord>,
report: Report,
},
Analysis(AnalysisError),
Validation {
candidate: Box<Candidate>,
report: Report,
},
PrefixValidation {
candidate: Box<PrefixCandidate>,
report: Report,
},
EndpointValidation {
report: Report,
},
ValidationResource(EvalError),
Document(String),
Thread(String),
}Expand description
An explicit refusal, evaluation error, resource bound or internal inconsistency. No error variant is evidence of a successful model check.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Binding(Box<Failure>)
Binding failed, preserving diagnostics and startup output.
NativeValidation
A graph-independent native candidate failed independent validation.
Fields
word: Box<NativeWord>The unvalidated selected word, without retained graph storage.
Analysis(AnalysisError)
Planning, product construction, atom evaluation or an explicit bound.
Validation
The independent validator cannot decide the candidate, or refutes it. Invalid candidates indicate an internal error and are never violations.
Fields
PrefixValidation
Independent validation refused or refuted an incomplete-prefix word.
Fields
candidate: Box<PrefixCandidate>Actual prefix candidate, never a completed graph.
EndpointValidation
Independent finite-error endpoint validation, distinct from a lasso.
ValidationResource(EvalError)
Validation exhausted an actual resource without producing a verdict.
Document(String)
A value could not be represented in the tagged trace document.
Thread(String)
The evaluation thread failed to start or panicked.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()