pub struct DbError {
pub description: String,
pub cause: Option<Box<DbError>>,
pub source_location: Location<'static>,
}Expand description
Universal agdb database error. It represents
any error caused by the database processing such as
loading a database, writing data etc.
Fields§
§description: StringError description
cause: Option<Box<DbError>>Optional error that caused this error
source_location: Location<'static>Location where the error originated in the sources
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)>
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<DbError> for QueryError
impl From<DbError> for QueryError
source§impl From<FromUtf8Error> for DbError
impl From<FromUtf8Error> for DbError
source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for DbError
impl From<TryFromIntError> for DbError
source§fn from(error: TryFromIntError) -> Self
fn from(error: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for DbError
impl From<TryFromSliceError> for DbError
source§fn from(error: TryFromSliceError) -> Self
fn from(error: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more