Enum polodb_core::DbErr
source · pub enum DbErr {
Show 51 variants
UnexpectedIdType(u8, u8),
NotAValidKeyType(String),
InvalidField(Box<InvalidFieldStruct>),
ValidationError(String),
InvalidOrderOfIndex(String),
IndexAlreadyExists(String),
FieldTypeUnexpected(Box<FieldTypeUnexpectedStruct>),
UnexpectedTypeForOp(Box<UnexpectedTypeForOpStruct>),
ParseError(String),
IOErr(Box<Error>),
UTF8Err(Box<Utf8Error>),
BsonErr(Box<BsonErr>),
BsonDeErr(Box<Error>),
DataSizeTooLarge(u32, u32),
DecodeEOF,
DataOverflow,
DataExist(String),
PageSpaceNotEnough,
DataHasNoPrimaryKey,
ChecksumMismatch,
JournalPageSizeMismatch(u32, u32),
SaltMismatch,
PageMagicMismatch(u32),
ItemSizeGreaterThanExpected,
CollectionNotFound(String),
MetaPageIdError,
CannotWriteDbWithoutTransaction,
StartTransactionInAnotherTransaction,
RollbackNotInTransaction,
IllegalCollectionName(String),
UnexpectedHeaderForBtreePage(Box<UnexpectedHeader>),
KeyTypeOfBtreeShouldNotBeZero,
UnexpectedPageHeader,
UnexpectedPageType,
UnknownTransactionType,
BufferNotEnough(usize),
UnknownUpdateOperation(String),
IncrementNullField,
VmIsHalt,
CollectionAlreadyExits(String),
UnableToUpdatePrimaryKey,
NotAValidDatabase,
Busy,
DatabaseOccupied,
Multiple(Vec<DbErr>),
VersionMismatch(Box<VersionMismatchError>),
LockError,
CannotApplyOperation(Box<CannotApplyOperationForTypes>),
NoTransactionStarted,
InvalidSession(Box<ObjectId>),
SessionOutdated,
}
Variants§
UnexpectedIdType(u8, u8)
NotAValidKeyType(String)
InvalidField(Box<InvalidFieldStruct>)
ValidationError(String)
InvalidOrderOfIndex(String)
IndexAlreadyExists(String)
FieldTypeUnexpected(Box<FieldTypeUnexpectedStruct>)
UnexpectedTypeForOp(Box<UnexpectedTypeForOpStruct>)
ParseError(String)
IOErr(Box<Error>)
UTF8Err(Box<Utf8Error>)
BsonErr(Box<BsonErr>)
BsonDeErr(Box<Error>)
DataSizeTooLarge(u32, u32)
DecodeEOF
DataOverflow
DataExist(String)
PageSpaceNotEnough
DataHasNoPrimaryKey
ChecksumMismatch
JournalPageSizeMismatch(u32, u32)
SaltMismatch
PageMagicMismatch(u32)
ItemSizeGreaterThanExpected
CollectionNotFound(String)
MetaPageIdError
CannotWriteDbWithoutTransaction
StartTransactionInAnotherTransaction
RollbackNotInTransaction
IllegalCollectionName(String)
UnexpectedHeaderForBtreePage(Box<UnexpectedHeader>)
KeyTypeOfBtreeShouldNotBeZero
UnexpectedPageHeader
UnexpectedPageType
UnknownTransactionType
BufferNotEnough(usize)
UnknownUpdateOperation(String)
IncrementNullField
VmIsHalt
CollectionAlreadyExits(String)
UnableToUpdatePrimaryKey
NotAValidDatabase
Busy
DatabaseOccupied
Multiple(Vec<DbErr>)
VersionMismatch(Box<VersionMismatchError>)
LockError
CannotApplyOperation(Box<CannotApplyOperationForTypes>)
NoTransactionStarted
InvalidSession(Box<ObjectId>)
SessionOutdated
Trait Implementations§
source§impl Error for DbErr
impl Error for DbErr
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> From<PoisonError<T>> for DbErr
impl<T> From<PoisonError<T>> for DbErr
source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.