pub enum SqliteGraphError {
ConnectionError(String),
SchemaError(String),
QueryError(String),
NotFound(String),
InvalidInput(String),
FaultInjected(String),
TransactionError(String),
ValidationError(String),
NativeError(NativeBackendError),
}Expand description
Error type for SQLiteGraph operations.
Variants§
ConnectionError(String)
SchemaError(String)
QueryError(String)
NotFound(String)
InvalidInput(String)
FaultInjected(String)
TransactionError(String)
ValidationError(String)
NativeError(NativeBackendError)
Implementations§
Source§impl SqliteGraphError
impl SqliteGraphError
pub fn connection<T: Into<String>>(msg: T) -> Self
pub fn schema<T: Into<String>>(msg: T) -> Self
pub fn query<T: Into<String>>(msg: T) -> Self
pub fn not_found<T: Into<String>>(msg: T) -> Self
pub fn invalid_input<T: Into<String>>(msg: T) -> Self
pub fn fault_injection<T: Into<String>>(msg: T) -> Self
pub fn transaction<T: Into<String>>(msg: T) -> Self
pub fn validation<T: Into<String>>(msg: T) -> Self
Trait Implementations§
Source§impl Debug for SqliteGraphError
impl Debug for SqliteGraphError
Source§impl Display for SqliteGraphError
impl Display for SqliteGraphError
Source§impl Error for SqliteGraphError
impl Error for SqliteGraphError
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<NativeBackendError> for SqliteGraphError
impl From<NativeBackendError> for SqliteGraphError
Source§fn from(source: NativeBackendError) -> Self
fn from(source: NativeBackendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SqliteGraphError
impl !RefUnwindSafe for SqliteGraphError
impl Send for SqliteGraphError
impl Sync for SqliteGraphError
impl Unpin for SqliteGraphError
impl !UnwindSafe for SqliteGraphError
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