pub enum SQLError {
Show 13 variants
Parse(String),
Unsupported(String),
UnknownTable(String),
UnknownColumn(String),
AmbiguousColumn(String),
UnknownFunction(String),
TypeMismatch(String),
BadArity {
name: String,
expected: String,
actual: usize,
},
MissingParam(usize),
VectorDimMismatch {
expected: usize,
actual: usize,
},
Cancelled(QueryCancelled),
Routine {
sqlstate: String,
message: String,
},
Internal(String),
}Variants§
Parse(String)
Unsupported(String)
UnknownTable(String)
UnknownColumn(String)
AmbiguousColumn(String)
UnknownFunction(String)
TypeMismatch(String)
BadArity
MissingParam(usize)
VectorDimMismatch
Cancelled(QueryCancelled)
Routine
Error raised by (or on behalf of) a user-defined SQL /
PL/pgSQL routine. Carries an explicit SQLSTATE so
EXCEPTION WHEN <condition> handlers and SQLSTATE /
SQLERRM report the same code PostgreSQL would.
Internal(String)
Implementations§
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()
Source§impl From<QueryCancelled> for SQLError
impl From<QueryCancelled> for SQLError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more