pub enum TypeError {
ColumnNotFound(String),
IndexOutOfBounds(usize),
UnexpectedNull,
TypeMismatch {
expected: &'static str,
got: &'static str,
},
OutOfRange(&'static str),
}Available on crate feature
sea-ql only.Expand description
Error returned by DataRow::try_get.
Variants§
ColumnNotFound(String)
A column name passed to try_get does not exist in this row.
IndexOutOfBounds(usize)
A column index passed to try_get is out of bounds.
UnexpectedNull
The column value is NULL but the target type is not Option<T>.
TypeMismatch
The stored Value variant cannot be converted to the requested type.
OutOfRange(&'static str)
The stored numeric value is outside the representable range of the target type.
Trait Implementations§
Source§impl Error for TypeError
impl Error for TypeError
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 TypeError
impl RefUnwindSafe for TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnsafeUnpin for TypeError
impl UnwindSafe for TypeError
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