pub enum DactylError {
Config(String),
Adapter {
kind: AdapterErrorKind,
code: Option<String>,
message: String,
},
UnsupportedOperation(String),
ColumnNotFound(String),
Conversion(String),
}Expand description
The backend-neutral public error surface.
Variants§
Implementations§
Source§impl DactylError
impl DactylError
pub fn adapter_kind(&self) -> Option<AdapterErrorKind>
Sourcepub fn adapter_code(&self) -> Option<&str>
pub fn adapter_code(&self) -> Option<&str>
Stable remote/provider code, when the adapter received one.
pub fn is_retryable(&self) -> bool
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