pub enum DactylError {
Unsupported {
construct: Construct,
},
InvalidQuery(String),
Adapter(String),
ColumnNotFound(String),
Conversion(String),
}Expand description
All errors dactyl can raise on its public surface.
Variants§
Unsupported
The query contains a dialect-specific construct the active adapter
does not support and optimize = false was passed.
InvalidQuery(String)
The query string failed to parse under the analyzer’s lexical rules.
Adapter(String)
Adapter-level failure. Wraps the underlying error message.
ColumnNotFound(String)
Requested column or index was not found in the row.
Conversion(String)
Type conversion of column value failed.
Trait Implementations§
Source§impl Debug for DactylError
impl Debug for DactylError
Source§impl Display for DactylError
impl Display for DactylError
Source§impl Error for DactylError
impl Error for DactylError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for DactylError
impl RefUnwindSafe for DactylError
impl Send for DactylError
impl Sync for DactylError
impl Unpin for DactylError
impl UnsafeUnpin for DactylError
impl UnwindSafe for DactylError
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