pub enum CsafError {
Storage(String),
Database(Error),
Serialization(Error),
Validation(String),
Io(Error),
Config(String),
NotFound(String),
Duplicate(String),
Import(String),
Export(String),
}Expand description
Central error type for CSAF core operations.
Variants§
Storage(String)
Storage (redb) error.
Database(Error)
Database (SQLite) error.
Serialization(Error)
Serialization/deserialization error.
Validation(String)
CSAF validation failed with one or more errors.
Io(Error)
File I/O error.
Config(String)
Configuration error.
NotFound(String)
Document not found.
Duplicate(String)
Duplicate document.
Import(String)
Import error.
Export(String)
Export error.
Trait Implementations§
Source§impl Error for CsafError
impl Error for CsafError
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<CommitError> for CsafError
impl From<CommitError> for CsafError
Source§fn from(e: CommitError) -> Self
fn from(e: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for CsafError
impl From<DatabaseError> for CsafError
Source§fn from(e: DatabaseError) -> Self
fn from(e: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for CsafError
impl From<StorageError> for CsafError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for CsafError
impl From<TableError> for CsafError
Source§fn from(e: TableError) -> Self
fn from(e: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for CsafError
impl From<TransactionError> for CsafError
Source§fn from(e: TransactionError) -> Self
fn from(e: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CsafError
impl !RefUnwindSafe for CsafError
impl Send for CsafError
impl Sync for CsafError
impl Unpin for CsafError
impl UnsafeUnpin for CsafError
impl !UnwindSafe for CsafError
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