pub enum DrizzleError {
Show 19 variants
ExecutionError(CompactString),
PrepareError(CompactString),
NotFound,
TransactionError(CompactString),
Mapping(CompactString),
Statement(CompactString),
Query(CompactString),
QueryFailed {
ctx: Box<QueryContext>,
source: Box<DrizzleError>,
},
ParameterError(CompactString),
TryFromInt(TryFromIntError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
ParseBool(ParseBoolError),
ConversionError(CompactString),
Schema(CompactString),
UnsafeMigrationRepair {
tag: CompactString,
reason: CompactString,
},
UnsupportedMigrationExecution {
adapter: CompactString,
requirement: 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
QueryFailed
Query error with rendered SQL and parameter context.
Fields
ctx: Box<QueryContext>Captured SQL and parameter context.
source: Box<DrizzleError>Original error.
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
Schema(CompactString)
Schema error (e.g. cycle in table dependencies)
UnsafeMigrationRepair
A dirty migration cannot be repaired without violating its execution safety contract.
Fields
tag: CompactStringMigration tag recorded in the tracking table.
reason: CompactStringSafety requirement that prevents automatic repair.
UnsupportedMigrationExecution
The selected adapter cannot provide a migration’s required execution semantics.
Fields
adapter: CompactStringRuntime adapter that cannot provide the required semantics.
requirement: CompactStringMigration execution capability the adapter does not provide.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<!> for DrizzleError
impl From<!> for DrizzleError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Source§impl From<ParseBoolError> for DrizzleError
impl From<ParseBoolError> for DrizzleError
Source§fn from(source: ParseBoolError) -> Self
fn from(source: ParseBoolError) -> Self
Source§impl From<ParseFloatError> for DrizzleError
impl From<ParseFloatError> for DrizzleError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Source§impl From<ParseIntError> for DrizzleError
impl From<ParseIntError> for DrizzleError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<TryFromIntError> for DrizzleError
impl From<TryFromIntError> for DrizzleError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Auto Trait Implementations§
impl Freeze for DrizzleError
impl RefUnwindSafe for DrizzleError
impl Send for DrizzleError
impl Sync for DrizzleError
impl Unpin for DrizzleError
impl UnsafeUnpin 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
impl<Mk> MarkerAggValidFor<()> for Mk
impl<Scope> ScopeSatisfies<Nil, ()> for Scope
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>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more