#[non_exhaustive]pub enum VerificationError {
Show 17 variants
EmptyValue {
field: &'static str,
},
ReservedUnknownStatus {
rule_id: String,
},
ZeroConfidence {
rule_id: String,
},
ConfirmedNegativeRequiresActive {
rule_id: String,
},
CaseCorrelationRequiresEvidenceOnly {
rule_id: String,
},
WrongStage {
rule_id: String,
expected: VerificationStage,
actual: VerificationStage,
},
RuleIdentityConflict {
id: String,
},
SnapshotSubjectMismatch {
expected: EntityId,
actual: EntityId,
},
UnknownHypothesis {
hypothesis_id: String,
},
MissingContributingEvidence {
rule_id: String,
},
NonMonotonicSnapshot {
evidence_id: EvidenceId,
},
UnknownEvidence {
evidence_id: EvidenceId,
},
EvidenceSubjectMismatch {
evidence_id: EvidenceId,
subject: EntityId,
},
ConflictingTerminalState {
hypothesis_id: String,
current: HypothesisState,
attempted: HypothesisState,
},
Rule(RuleEngineError),
Outcome(OutcomeError),
Knowledge(KnowledgeBaseError),
}Expand description
Validation and evaluation errors raised by verification components.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyValue
A required case, rule, or explanation value was empty.
ReservedUnknownStatus
A rule attempted to explicitly emit the evidence-free fallback status.
ZeroConfidence
A conclusive rule was configured with zero confidence.
ConfirmedNegativeRequiresActive
A confirmed-negative rule was configured for passive evaluation.
CaseCorrelationRequiresEvidenceOnly
Case-correlated evaluation was requested for a non-evidence expression.
WrongStage
A verifier was given a rule for the other evidence collection stage.
Fields
expected: VerificationStageStage owned by the verifier.
actual: VerificationStageStage declared by the rule.
RuleIdentityConflict
A rule identity was reused with different semantics.
SnapshotSubjectMismatch
The case and snapshot refer to different subjects.
Fields
UnknownHypothesis
The case references a hypothesis absent from the snapshot or knowledge base.
MissingContributingEvidence
A matched rule relied only on absence or ontology and cited no observation.
NonMonotonicSnapshot
An active snapshot omitted evidence that existed before the probe.
Fields
evidence_id: EvidenceIdUnknownEvidence
A persisted outcome referenced evidence absent from the knowledge base.
Fields
evidence_id: EvidenceIdEvidenceSubjectMismatch
Outcome evidence belongs to a different subject.
Fields
evidence_id: EvidenceIdEvidence with incompatible provenance.
ConflictingTerminalState
A verifier attempted to reverse an existing terminal conclusion.
Fields
current: HypothesisStateTerminal state already stored.
attempted: HypothesisStateOpposite terminal state requested by the outcome.
Rule(RuleEngineError)
Expression evaluation failed.
Outcome(OutcomeError)
Outcome construction failed.
Knowledge(KnowledgeBaseError)
A hypothesis update conflicted with stored knowledge.
Trait Implementations§
Source§impl Debug for VerificationError
impl Debug for VerificationError
Source§impl Display for VerificationError
impl Display for VerificationError
Source§impl Error for VerificationError
impl Error for VerificationError
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()