pub enum ProvenanceError {
Invalid {
field: &'static str,
message: &'static str,
},
Limit {
participant: &'static str,
observed: usize,
limit: usize,
},
Duplicate(&'static str),
Dangling(&'static str),
Conflict(&'static str),
Canonical(CanonicalError),
Arrow(ArrowError),
}Expand description
Structured domain failures.
Variants§
Invalid
Invalid record value or derived identity.
Limit
Participant row limit exceeded.
Fields
Duplicate(&'static str)
Duplicate identity in one staged participant.
Dangling(&'static str)
Lineage references an event absent from the same participant.
Conflict(&'static str)
Idempotency identity was reused for different content.
Canonical(CanonicalError)
Shared canonicalization failure.
Arrow(ArrowError)
Arrow construction failure.
Implementations§
Trait Implementations§
Source§impl Debug for ProvenanceError
impl Debug for ProvenanceError
Source§impl Display for ProvenanceError
impl Display for ProvenanceError
Source§impl Error for ProvenanceError
impl Error for ProvenanceError
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 ProvenanceError
impl From<ArrowError> for ProvenanceError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalError> for ProvenanceError
impl From<CanonicalError> for ProvenanceError
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 ProvenanceError
impl !UnwindSafe for ProvenanceError
impl Freeze for ProvenanceError
impl Send for ProvenanceError
impl Sync for ProvenanceError
impl Unpin for ProvenanceError
impl UnsafeUnpin for ProvenanceError
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