pub enum DbError {
Show 27 variants
Store(StoreError),
Record(RecordError),
Migration(MigrationError),
Materialized(MaterializedError),
Security(SecurityError),
Authority(AuthorityError),
Invitation(InvitationError),
Commit(CommitCodecError),
MigrationCodec(MigrationCodecError),
RandomnessUnavailable,
SequenceExhausted,
EmptyTransaction,
HandlesOpen,
InvalidQuery(RecordError),
InvalidCursor(String),
Blob(BlobError),
InvalidSnapshot(String),
UnauthorizedDevice,
RebaseRequired(CommitId),
StaleEpoch {
handle: u64,
active: u64,
},
InvitationAlreadyUsed,
UnknownRecordSchema(CollectionId),
SchemaMigrationRequired {
collection_id: CollectionId,
stored_version: u32,
requested_version: u32,
},
SchemaMigrationFrozen(CollectionId),
InvalidRemoteCommit(String),
Network(String),
Operation(String),
}Expand description
An embedded database operation failure.
Variants§
Store(StoreError)
Durable metadata or blob storage failed.
Record(RecordError)
A typed record failed schema or codec validation.
Migration(MigrationError)
A registered schema migration was invalid or its deterministic transform failed.
Materialized(MaterializedError)
A prepared materialization violated storage bounds.
Security(SecurityError)
Commit encryption, signing or key-provider access failed.
Authority(AuthorityError)
A capability, invitation, or domain-control object failed validation.
Invitation(InvitationError)
A targeted online or offline invitation failed validation or decryption.
Commit(CommitCodecError)
A bounded canonical commit object could not be constructed.
MigrationCodec(MigrationCodecError)
A canonical migration stage or activation was invalid.
The operating-system cryptographic random source failed.
SequenceExhausted
The local author sequence exhausted its durable range.
EmptyTransaction
A transaction without operations cannot create a commit.
HandlesOpen
Collection or transaction handles still reference the database during close.
InvalidQuery(RecordError)
A query predicate could not encode its value.
InvalidCursor(String)
An opaque pagination cursor was malformed, modified, stale, or used with another query.
Blob(BlobError)
Encrypted blob import, manifest validation or streaming setup failed.
InvalidSnapshot(String)
A snapshot failed canonical, signature, domain or state-root validation.
A network-authenticated device is not authorized for this domain operation.
RebaseRequired(CommitId)
A commit authored behind a signed epoch cut must be explicitly rebased by the application.
StaleEpoch
A domain handle predates the durable control epoch and must be reopened.
InvitationAlreadyUsed
A one-time offline invitation ticket was already imported by this device.
UnknownRecordSchema(CollectionId)
A remote commit targets a typed collection not registered by this process.
SchemaMigrationRequired
A newer schema was used without traversing the registered migration chain.
Fields
collection_id: CollectionIdStable collection requiring migration.
SchemaMigrationFrozen(CollectionId)
Incompatible activation siblings froze a collection pending explicit recovery.
InvalidRemoteCommit(String)
A remote commit header, operation, or materialization disagreed about its target.
Network(String)
Endpoint, QUIC, control-frame, or immutable transfer failed.
Operation(String)
Verification, repair, backup, or restore failed without overwriting a good copy.
Trait Implementations§
Source§impl Error for DbError
impl Error for DbError
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<AuthorityError> for DbError
impl From<AuthorityError> for DbError
Source§fn from(source: AuthorityError) -> Self
fn from(source: AuthorityError) -> Self
Source§impl From<CommitCodecError> for DbError
impl From<CommitCodecError> for DbError
Source§fn from(source: CommitCodecError) -> Self
fn from(source: CommitCodecError) -> Self
Source§impl From<InvitationError> for DbError
impl From<InvitationError> for DbError
Source§fn from(source: InvitationError) -> Self
fn from(source: InvitationError) -> Self
Source§impl From<MaterializedError> for DbError
impl From<MaterializedError> for DbError
Source§fn from(source: MaterializedError) -> Self
fn from(source: MaterializedError) -> Self
Source§impl From<MigrationCodecError> for DbError
impl From<MigrationCodecError> for DbError
Source§fn from(source: MigrationCodecError) -> Self
fn from(source: MigrationCodecError) -> Self
Source§impl From<MigrationError> for DbError
impl From<MigrationError> for DbError
Source§fn from(source: MigrationError) -> Self
fn from(source: MigrationError) -> Self
Source§impl From<RecordError> for DbError
impl From<RecordError> for DbError
Source§fn from(source: RecordError) -> Self
fn from(source: RecordError) -> Self
Source§impl From<SecurityError> for DbError
impl From<SecurityError> for DbError
Source§fn from(source: SecurityError) -> Self
fn from(source: SecurityError) -> Self
Source§impl From<StoreError> for DbError
impl From<StoreError> for DbError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Auto Trait Implementations§
impl Freeze for DbError
impl RefUnwindSafe for DbError
impl Send for DbError
impl Sync for DbError
impl Unpin for DbError
impl UnwindSafe for DbError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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