pub enum DbError {
Io(Error),
Format(FormatError),
Schema(SchemaError),
Validation(ValidationError),
Transaction(TransactionError),
Query(QueryError),
NotImplemented,
}Variants§
Io(Error)
Failed to access the database file or path.
Format(FormatError)
Failed to parse or validate the on-disk format (header, superblock, segments, payloads).
Schema(SchemaError)
Catalog or row did not satisfy schema invariants.
Validation(ValidationError)
Row value failed type or constraint checks before persistence.
Transaction(TransactionError)
Transaction nesting or API misuse (0.8+).
Query(QueryError)
Query construction, parsing, or execution error (SQL adapter and query planner).
NotImplemented
Requested capability is not implemented in this release (e.g. nested field paths in rows).
Implementations§
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)>
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<CatalogDecodeError> for DbError
impl From<CatalogDecodeError> for DbError
Source§fn from(e: CatalogDecodeError) -> Self
fn from(e: CatalogDecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DbError
impl !RefUnwindSafe for DbError
impl Send for DbError
impl Sync for DbError
impl Unpin for DbError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more