#[non_exhaustive]pub enum KnowledgeBaseError {
SnapshotAuthorityMismatch {
subject: EntityId,
},
IdentityConflict {
kind: KnowledgeRecordKind,
id: String,
},
RelationEvidenceMismatch {
relation_id: String,
evidence_id: String,
},
RelationSubjectMismatch {
relation_id: String,
evidence_subject: String,
relation_from: String,
},
RelationLimitExceeded {
field: &'static str,
actual: usize,
maximum: usize,
},
StaleSnapshot {
subject: EntityId,
expected_subject_revision: u64,
actual_subject_revision: u64,
expected_ontology_revision: u64,
actual_ontology_revision: u64,
},
ReasoningSubjectMismatch {
hypothesis_id: String,
expected: EntityId,
actual: EntityId,
},
MissingDerivationParent {
child: String,
parent: String,
},
SelfDerivation {
evidence_id: String,
},
DerivationSubjectMismatch {
child: String,
parent: String,
},
DerivationCycle {
evidence_id: String,
},
}Expand description
Errors raised when a knowledge record violates storage or identity invariants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SnapshotAuthorityMismatch
A snapshot or commit token was minted by another knowledge-base instance.
IdentityConflict
The identity exists, but its immutable claim or graph identity differs.
Fields
kind: KnowledgeRecordKindCategory of the conflicting record.
RelationEvidenceMismatch
An atomic relation bundle did not reference exactly its supplied evidence.
Fields
RelationSubjectMismatch
An atomic relation did not originate at its evidence subject.
Fields
RelationLimitExceeded
A relation field or provenance collection exceeded its storage ceiling.
Fields
StaleSnapshot
A reasoning batch was evaluated against knowledge that has since changed.
Fields
ReasoningSubjectMismatch
A reasoning batch contained a conclusion for another subject.
Fields
MissingDerivationParent
A derived evidence record referenced a parent that neither already exists nor appears in the same atomic batch.
Fields
SelfDerivation
A derived evidence record referenced itself as a parent.
DerivationSubjectMismatch
A derived evidence record referenced a parent recorded for a different subject.
DerivationCycle
The derivation edges in one atomic batch formed a cycle.
Trait Implementations§
Source§impl Clone for KnowledgeBaseError
impl Clone for KnowledgeBaseError
Source§fn clone(&self) -> KnowledgeBaseError
fn clone(&self) -> KnowledgeBaseError
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 KnowledgeBaseError
impl Debug for KnowledgeBaseError
Source§impl Display for KnowledgeBaseError
impl Display for KnowledgeBaseError
impl Eq for KnowledgeBaseError
Source§impl Error for KnowledgeBaseError
impl Error for KnowledgeBaseError
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()
Source§impl From<KnowledgeBaseError> for ApiObservationError
impl From<KnowledgeBaseError> for ApiObservationError
Source§fn from(source: KnowledgeBaseError) -> Self
fn from(source: KnowledgeBaseError) -> Self
Source§impl From<KnowledgeBaseError> for RuleEngineError
impl From<KnowledgeBaseError> for RuleEngineError
Source§fn from(source: KnowledgeBaseError) -> Self
fn from(source: KnowledgeBaseError) -> Self
Source§impl From<KnowledgeBaseError> for VerificationError
impl From<KnowledgeBaseError> for VerificationError
Source§fn from(source: KnowledgeBaseError) -> Self
fn from(source: KnowledgeBaseError) -> Self
Source§impl From<KnowledgeBaseError> for DecisionRunnerError
impl From<KnowledgeBaseError> for DecisionRunnerError
Source§fn from(source: KnowledgeBaseError) -> Self
fn from(source: KnowledgeBaseError) -> Self
Source§impl PartialEq for KnowledgeBaseError
impl PartialEq for KnowledgeBaseError
impl StructuralPartialEq for KnowledgeBaseError
Auto Trait Implementations§
impl Freeze for KnowledgeBaseError
impl RefUnwindSafe for KnowledgeBaseError
impl Send for KnowledgeBaseError
impl Sync for KnowledgeBaseError
impl Unpin for KnowledgeBaseError
impl UnsafeUnpin for KnowledgeBaseError
impl UnwindSafe for KnowledgeBaseError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.