#[non_exhaustive]pub enum RuleEngineError {
EmptyValue {
field: &'static str,
},
EmptyExpression {
operator: &'static str,
},
EmptyCalibrations,
InvalidAggregationLimit,
VerifierOnlyState {
state: HypothesisState,
},
RuleIdentityConflict {
id: String,
},
MissingCalibratedEvidence {
rule_id: String,
},
AmbiguousEvidenceCalibration {
rule_id: String,
evidence_id: EvidenceId,
},
Ontology(OntologyError),
Reasoning(ReasoningModelError),
Knowledge(KnowledgeBaseError),
StaleSnapshotRetriesExhausted {
attempts: u8,
},
}Expand description
Errors raised while validating or evaluating deterministic rules.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyValue
A required rule identifier or explanation was empty.
EmptyExpression
A logical group did not contain any child expression.
EmptyCalibrations
A hypothesis conclusion did not define any evidence calibration.
InvalidAggregationLimit
A bounded evidence aggregation requested zero contributions.
VerifierOnlyState
A rule attempted to assign a state reserved for a verifier.
Fields
state: HypothesisStateRuleIdentityConflict
A rule identity was reused with different semantics.
MissingCalibratedEvidence
A matched rule could not bind any contributing evidence.
AmbiguousEvidenceCalibration
Two calibrations assigned different likelihoods to one observation.
Fields
evidence_id: EvidenceIdEvidence that matched more than one incompatible selector.
Ontology(OntologyError)
Ontology evaluation failed.
Reasoning(ReasoningModelError)
A reasoning-domain invariant failed.
Knowledge(KnowledgeBaseError)
A materialized hypothesis conflicted with stored knowledge.
StaleSnapshotRetriesExhausted
Concurrent rule-visible writes prevented a stable reasoning commit.
Trait Implementations§
Source§impl Debug for RuleEngineError
impl Debug for RuleEngineError
Source§impl Display for RuleEngineError
impl Display for RuleEngineError
Source§impl Error for RuleEngineError
impl Error for RuleEngineError
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()