pub enum SqlError {
Show 25 variants
Parse(String),
TableNotFound(String),
TableAlreadyExists(String),
ColumnNotFound(String),
DuplicateKey,
NotNullViolation(String),
TypeMismatch {
expected: String,
got: String,
},
PrimaryKeyRequired,
DuplicateColumn(String),
RowTooLarge {
size: usize,
max: usize,
},
KeyTooLarge {
size: usize,
max: usize,
},
Unsupported(String),
InvalidValue(String),
DivisionByZero,
IntegerOverflow,
AmbiguousColumn(String),
IndexNotFound(String),
IndexAlreadyExists(String),
UniqueViolation(String),
TransactionAlreadyActive,
NoActiveTransaction,
SubqueryMultipleColumns,
SubqueryMultipleRows,
ParameterCountMismatch {
expected: usize,
got: usize,
},
Storage(Error),
}Variants§
Parse(String)
TableNotFound(String)
TableAlreadyExists(String)
ColumnNotFound(String)
DuplicateKey
NotNullViolation(String)
TypeMismatch
PrimaryKeyRequired
DuplicateColumn(String)
RowTooLarge
KeyTooLarge
Unsupported(String)
InvalidValue(String)
DivisionByZero
IntegerOverflow
AmbiguousColumn(String)
IndexNotFound(String)
IndexAlreadyExists(String)
UniqueViolation(String)
TransactionAlreadyActive
NoActiveTransaction
SubqueryMultipleColumns
SubqueryMultipleRows
ParameterCountMismatch
Storage(Error)
Trait Implementations§
Source§impl Error for SqlError
impl Error for SqlError
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 SqlError
impl !RefUnwindSafe for SqlError
impl Send for SqlError
impl Sync for SqlError
impl Unpin for SqlError
impl UnsafeUnpin for SqlError
impl !UnwindSafe for SqlError
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