pub enum ErrorCode {
Show 15 variants
NotFound,
ConnectionError,
SerialisationError,
DeserialisationError,
Timeout,
Conflict,
TransactionAborted,
UnsupportedFeature,
ConstraintViolation,
InvalidKey,
InvalidNamespace,
InvalidCollection,
InvalidValue,
DriverError,
InternalError,
}Expand description
Stable cross-language error codes.
Variants§
NotFound
A requested record was not found when the operation required it.
ConnectionError
A backend connection could not be opened or used.
SerialisationError
A value could not be serialised.
DeserialisationError
Stored bytes could not be deserialised into the requested type.
Timeout
An operation exceeded its allowed time.
Conflict
An operation conflicted with existing data or concurrent work.
TransactionAborted
A transaction was aborted.
UnsupportedFeature
The selected driver does not support the requested feature.
ConstraintViolation
A storage constraint was violated.
InvalidKey
A key was invalid.
InvalidNamespace
A namespace was invalid.
InvalidCollection
A collection name was invalid.
InvalidValue
A value was invalid.
DriverError
A driver reported a backend-specific failure.
InternalError
A yugendb invariant failed.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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