pub enum DrizzleError {
Show 15 variants
ExecutionError(CompactString),
PrepareError(CompactString),
NotFound,
TransactionError(CompactString),
Mapping(CompactString),
Statement(CompactString),
Query(CompactString),
ParameterError(CompactString),
TryFromInt(TryFromIntError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
ParseBool(ParseBoolError),
ConversionError(CompactString),
Other(CompactString),
Infallible(Infallible),
}Expand description
Core error type for drizzle operations
Variants§
ExecutionError(CompactString)
Error executing a query
PrepareError(CompactString)
Error preparing a statement
NotFound
No rows returned when at least one was expected
TransactionError(CompactString)
Error with transaction
Mapping(CompactString)
Error mapping data
Statement(CompactString)
Error in statement
Query(CompactString)
Error in query
ParameterError(CompactString)
Error converting parameters
TryFromInt(TryFromIntError)
Integer conversion error
ParseInt(ParseIntError)
Parse int error
ParseFloat(ParseFloatError)
Parse float error
ParseBool(ParseBoolError)
Parse bool error
ConversionError(CompactString)
Type conversion error
Other(CompactString)
Generic error
Infallible(Infallible)
Infallible conversion error (should never happen)
Trait Implementations§
Source§impl Debug for DrizzleError
impl Debug for DrizzleError
Source§impl Display for DrizzleError
impl Display for DrizzleError
Source§impl Error for DrizzleError
impl Error for DrizzleError
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<Infallible> for DrizzleError
impl From<Infallible> for DrizzleError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<ParseBoolError> for DrizzleError
impl From<ParseBoolError> for DrizzleError
Source§fn from(source: ParseBoolError) -> Self
fn from(source: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for DrizzleError
impl From<ParseFloatError> for DrizzleError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for DrizzleError
impl From<ParseIntError> for DrizzleError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for DrizzleError
impl From<TryFromIntError> for DrizzleError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DrizzleError
impl RefUnwindSafe for DrizzleError
impl Send for DrizzleError
impl Sync for DrizzleError
impl Unpin for DrizzleError
impl UnwindSafe for DrizzleError
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
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more