pub enum OxiSqlError {
Parse(String),
Execution(String),
NotConnected,
TypeMismatch {
expected: &'static str,
got: &'static str,
},
ConstraintViolation(String),
Timeout(String),
ConnectionPool(String),
Migration(String),
UnsupportedUri(String),
Params(String),
Other(String),
}Expand description
Errors that can occur during OxiSQL operations.
Variants§
Parse(String)
The SQL could not be parsed.
Execution(String)
The statement failed during execution.
NotConnected
No connection is available.
TypeMismatch
A value had an unexpected type.
Fields
ConstraintViolation(String)
A unique or foreign key constraint was violated.
Timeout(String)
A connection or query timeout occurred.
ConnectionPool(String)
A connection pool error (exhausted, timeout, build failure).
Migration(String)
A migration error.
UnsupportedUri(String)
The requested URI or feature is not supported by this backend.
Params(String)
A named-parameter binding error (missing or malformed placeholder).
Other(String)
Any other error.
Trait Implementations§
Source§impl Debug for OxiSqlError
impl Debug for OxiSqlError
Source§impl Display for OxiSqlError
impl Display for OxiSqlError
Source§impl Error for OxiSqlError
impl Error for OxiSqlError
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 OxiSqlError
impl RefUnwindSafe for OxiSqlError
impl Send for OxiSqlError
impl Sync for OxiSqlError
impl Unpin for OxiSqlError
impl UnsafeUnpin for OxiSqlError
impl UnwindSafe for OxiSqlError
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