Struct agdb::QueryError
source · pub struct QueryError {
pub description: String,
pub cause: Option<DbError>,
}Expand description
Universal query error returned from all query operations.
It represents mainly errors from executing queries but the
cause of the error may be in exceptional cases a DbError.
Typically however it will contain description of a problem with
running a query such as “id/alias does not exist”.
Fields§
§description: String§cause: Option<DbError>Trait Implementations§
source§impl Debug for QueryError
impl Debug for QueryError
source§impl Default for QueryError
impl Default for QueryError
source§fn default() -> QueryError
fn default() -> QueryError
Returns the “default value” for a type. Read more
source§impl Display for QueryError
impl Display for QueryError
source§impl Error for QueryError
impl Error for QueryError
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<&str> for QueryError
impl From<&str> for QueryError
source§impl From<DbError> for QueryError
impl From<DbError> for QueryError
source§impl<T> From<PoisonError<T>> for QueryError
impl<T> From<PoisonError<T>> for QueryError
source§fn from(value: PoisonError<T>) -> Self
fn from(value: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<String> for QueryError
impl From<String> for QueryError
source§impl PartialEq for QueryError
impl PartialEq for QueryError
source§fn eq(&self, other: &QueryError) -> bool
fn eq(&self, other: &QueryError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for QueryError
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
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