pub enum ValidationError {
Show 15 variants
SeqNumDoesNotMatch(u64, u64),
ExpectedSkiplinkNotFound(String, u64, u64),
LogIdDoesNotMatchExisting(u64, u64),
ExpectedDocumentLogNotFound(PublicKey, DocumentId),
LogIdDuplicate(u64),
FirstEntryWithSkiplink,
InvalidClaimedSchema(OperationId, SchemaId, SchemaId),
DocumentDeleted,
MaxSeqNum,
MaxLogId,
PreviousOperationNotFound(OperationId),
InvalidDocumentViewId,
LogStoreError(LogStorageError),
EntryStoreError(EntryStorageError),
OperationStoreError(OperationStorageError),
}
Expand description
Error type used in the validation module.
Variants§
SeqNumDoesNotMatch(u64, u64)
The claimed sequence number didn’t match the expected.
ExpectedSkiplinkNotFound(String, u64, u64)
The expected skiplink entry wasn’t found in the store.
LogIdDoesNotMatchExisting(u64, u64)
The claimed log id didn’t match the expected for a given public key and document id.
ExpectedDocumentLogNotFound(PublicKey, DocumentId)
The expected log for given public key and document id not found.
LogIdDuplicate(u64)
Claimed log id is already in use.
FirstEntryWithSkiplink
Entry with seq num 1 contained a skiplink.
InvalidClaimedSchema(OperationId, SchemaId, SchemaId)
Claimed schema does not match the documents expected schema.
DocumentDeleted
This document is deleted.
MaxSeqNum
Max u64 sequence number reached.
MaxLogId
Max u64 log id reached.
PreviousOperationNotFound(OperationId)
An operation in the previous
field was not found in the store.
InvalidDocumentViewId
A document view id was provided which contained operations from different documents.
LogStoreError(LogStorageError)
Error coming from the log store.
EntryStoreError(EntryStorageError)
Error coming from the entry store.
OperationStoreError(OperationStorageError)
Error coming from the operation store.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
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
Source§impl From<EntryStorageError> for ValidationError
impl From<EntryStorageError> for ValidationError
Source§fn from(source: EntryStorageError) -> Self
fn from(source: EntryStorageError) -> Self
Source§impl From<LogStorageError> for ValidationError
impl From<LogStorageError> for ValidationError
Source§fn from(source: LogStorageError) -> Self
fn from(source: LogStorageError) -> Self
Source§impl From<OperationStorageError> for ValidationError
impl From<OperationStorageError> for ValidationError
Source§fn from(source: OperationStorageError) -> Self
fn from(source: OperationStorageError) -> Self
Source§impl From<ValidationError> for DomainError
impl From<ValidationError> for DomainError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Auto Trait Implementations§
impl Freeze for ValidationError
impl !RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl !UnwindSafe for ValidationError
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)
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> 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>
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>
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