pub enum SqliteError {
Pool(String),
Sqlite(Error),
Config(String),
Connection(String),
Query(String),
Deserialization(String),
TypeConversion(String),
Timeout(String),
Internal(String),
}Expand description
Error type for SQLite operations.
Variants§
Pool(String)
Pool error.
Sqlite(Error)
SQLite driver error.
Config(String)
Configuration error.
Connection(String)
Connection error.
Query(String)
Query error.
Deserialization(String)
Deserialization error.
TypeConversion(String)
Type conversion error.
Timeout(String)
Timeout error.
Internal(String)
Internal error.
Implementations§
Source§impl SqliteError
impl SqliteError
Sourcepub fn connection(msg: impl Into<String>) -> Self
pub fn connection(msg: impl Into<String>) -> Self
Create a connection error.
Sourcepub fn deserialization(msg: impl Into<String>) -> Self
pub fn deserialization(msg: impl Into<String>) -> Self
Create a deserialization error.
Sourcepub fn type_conversion(msg: impl Into<String>) -> Self
pub fn type_conversion(msg: impl Into<String>) -> Self
Create a type conversion error.
Trait Implementations§
Source§impl Debug for SqliteError
impl Debug for SqliteError
Source§impl Display for SqliteError
impl Display for SqliteError
Source§impl Error for SqliteError
impl Error for SqliteError
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<Error> for SqliteError
impl From<Error> for SqliteError
Source§impl From<Error> for SqliteError
impl From<Error> for SqliteError
Source§impl From<SqliteError> for QueryError
impl From<SqliteError> for QueryError
Source§fn from(err: SqliteError) -> Self
fn from(err: SqliteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SqliteError
impl !RefUnwindSafe for SqliteError
impl Send for SqliteError
impl Sync for SqliteError
impl Unpin for SqliteError
impl !UnwindSafe for SqliteError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<E> IntoQueryError for E
impl<E> IntoQueryError for E
Source§fn into_query_error(self) -> QueryError
fn into_query_error(self) -> QueryError
Convert to a QueryError.