pub enum DomainError {
MaxSeqNumReached(String, u64),
DeletedDocument,
ExpectedLogIdNotFound(u64),
ValidationError(ValidationError),
LogStoreError(LogStorageError),
EntryStoreError(EntryStorageError),
OperationStoreError(OperationStorageError),
DecodeEntryError(DecodeEntryError),
ValidateOperationError(ValidateOperationError),
}
Expand description
Error type used in the domain module.
Variants§
MaxSeqNumReached(String, u64)
The maximum u64 sequence number has been reached for the public key and log id combination.
DeletedDocument
Tried to update or delete a deleted document.
ExpectedLogIdNotFound(u64)
Expected log id not found when calculating next args.
ValidationError(ValidationError)
Validation errors.
LogStoreError(LogStorageError)
Error coming from the log store.
EntryStoreError(EntryStorageError)
Error coming from the entry store.
OperationStoreError(OperationStorageError)
Error coming from the operation store.
DecodeEntryError(DecodeEntryError)
Error occurring when decoding entries.
ValidateOperationError(ValidateOperationError)
Error occurring when validating operations.
Trait Implementations§
Source§impl Debug for DomainError
impl Debug for DomainError
Source§impl Display for DomainError
impl Display for DomainError
Source§impl Error for DomainError
impl Error for DomainError
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<DecodeEntryError> for DomainError
impl From<DecodeEntryError> for DomainError
Source§fn from(source: DecodeEntryError) -> Self
fn from(source: DecodeEntryError) -> Self
Converts to this type from the input type.
Source§impl From<EntryStorageError> for DomainError
impl From<EntryStorageError> for DomainError
Source§fn from(source: EntryStorageError) -> Self
fn from(source: EntryStorageError) -> Self
Converts to this type from the input type.
Source§impl From<LogStorageError> for DomainError
impl From<LogStorageError> for DomainError
Source§fn from(source: LogStorageError) -> Self
fn from(source: LogStorageError) -> Self
Converts to this type from the input type.
Source§impl From<OperationStorageError> for DomainError
impl From<OperationStorageError> for DomainError
Source§fn from(source: OperationStorageError) -> Self
fn from(source: OperationStorageError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateOperationError> for DomainError
impl From<ValidateOperationError> for DomainError
Source§fn from(source: ValidateOperationError) -> Self
fn from(source: ValidateOperationError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for DomainError
impl From<ValidationError> for DomainError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DomainError
impl !RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl !UnwindSafe for DomainError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more