pub enum KnowledgeError {
Invalid {
field: &'static str,
message: &'static str,
},
Limit {
participant: &'static str,
observed: usize,
limit: usize,
},
Duplicate(&'static str),
Dangling(&'static str),
Conflict(&'static str),
TransactionConflict(&'static str),
Canonical(CanonicalError),
Arrow(ArrowError),
}Expand description
Structured knowledge-domain failures.
Variants§
Invalid
Invalid record value or derived identity.
Limit
Participant row limit exceeded.
Fields
Duplicate(&'static str)
Duplicate identity in one participant.
Dangling(&'static str)
A required assertion or graph UUID is absent.
Conflict(&'static str)
Idempotency identity was reused for different content.
TransactionConflict(&'static str)
A transaction identity was reused for different immutable content.
Canonical(CanonicalError)
Shared canonicalization failure.
Arrow(ArrowError)
Arrow construction failure.
Implementations§
Trait Implementations§
Source§impl Debug for KnowledgeError
impl Debug for KnowledgeError
Source§impl Display for KnowledgeError
impl Display for KnowledgeError
Source§impl Error for KnowledgeError
impl Error for KnowledgeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ArrowError> for KnowledgeError
impl From<ArrowError> for KnowledgeError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalError> for KnowledgeError
impl From<CanonicalError> for KnowledgeError
Source§fn from(source: CanonicalError) -> Self
fn from(source: CanonicalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for KnowledgeError
impl !UnwindSafe for KnowledgeError
impl Freeze for KnowledgeError
impl Send for KnowledgeError
impl Sync for KnowledgeError
impl Unpin for KnowledgeError
impl UnsafeUnpin for KnowledgeError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more