#[non_exhaustive]pub enum EvaluationError {
InvalidConfiguration(ConfigValidationError),
InvalidPrediction(PredictionContractError),
InvalidCheckId(&'static str),
DuplicateCheckId(&'static str),
UnknownSelection(String),
InvalidCheckOutput {
check_id: &'static str,
reason: &'static str,
},
FindingCheckIdMismatch {
check_id: &'static str,
finding_check_id: &'static str,
},
BuiltinEvaluationScopeEmitterMismatch {
check_id: &'static str,
code: EvaluationScopeCode,
},
BuiltinCoverageGapEmitterMismatch {
check_id: &'static str,
code: CoverageGapCode,
},
}Expand description
Invalid catalog or check output supplied to evaluate_checks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidConfiguration(ConfigValidationError)
The supplied programmatic configuration contains an invalid value.
InvalidPrediction(PredictionContractError)
Engine-prediction evidence violates its wire or lifecycle contract.
InvalidCheckId(&'static str)
A catalog or directly constructed check record used an empty id.
DuplicateCheckId(&'static str)
Two catalog entries used the same stable check id.
UnknownSelection(String)
Explicit selection named an id absent from the supplied catalog.
InvalidCheckOutput
Check evidence violates the derived coverage-state invariants.
Fields
FindingCheckIdMismatch
A nested finding claimed a different check id than its parent record.
Fields
BuiltinEvaluationScopeEmitterMismatch
A built-in completed or missing-work scope came from an undeclared check.
Fields
code: EvaluationScopeCodeBuilt-in scope code that does not declare this emitter.
BuiltinCoverageGapEmitterMismatch
A built-in coverage-gap code came from an undeclared check.
Fields
code: CoverageGapCodeBuilt-in gap code that does not declare this emitter.
Trait Implementations§
Source§impl Clone for EvaluationError
impl Clone for EvaluationError
Source§fn clone(&self) -> EvaluationError
fn clone(&self) -> EvaluationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EvaluationError
impl Debug for EvaluationError
Source§impl Display for EvaluationError
impl Display for EvaluationError
impl Eq for EvaluationError
Source§impl Error for EvaluationError
impl Error for EvaluationError
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()