pub enum FoldDbError {
Schema(SchemaError),
Database(String),
Permission(String),
Config(String),
Network(NetworkErrorKind),
Io(Error),
Serialization(String),
Payment(String),
SecurityError(String),
Other(String),
}Expand description
Unified error type for the entire application.
This error type centralizes all possible errors that can occur in the application, providing a consistent interface for error handling and propagation.
Each variant represents a specific category of errors, with associated context to help with debugging and error reporting.
Variants§
Schema(SchemaError)
Errors related to schema operations
Database(String)
Errors related to database operations
Permission(String)
Errors related to permission checks
Config(String)
Errors related to configuration
Network(NetworkErrorKind)
Errors related to network operations
Io(Error)
Errors related to IO operations
Serialization(String)
Errors related to serialization/deserialization
Payment(String)
Errors related to payment processing
SecurityError(String)
Errors related to security operations
Other(String)
Other errors that don’t fit into the above categories
Trait Implementations§
Source§impl Debug for FoldDbError
impl Debug for FoldDbError
Source§impl Display for FoldDbError
impl Display for FoldDbError
Source§impl Error for FoldDbError
impl Error for FoldDbError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for FoldDbError
Conversion from io::Error to FoldDbError
impl From<Error> for FoldDbError
Conversion from io::Error to FoldDbError
Source§impl From<Error> for FoldDbError
Conversion from serde_json::Error to FoldDbError
impl From<Error> for FoldDbError
Conversion from serde_json::Error to FoldDbError
Source§impl From<Error> for FoldDbError
Conversion from sled::Error to FoldDbError
impl From<Error> for FoldDbError
Conversion from sled::Error to FoldDbError
Source§impl From<SchemaError> for FoldDbError
Conversion from SchemaError to FoldDbError
impl From<SchemaError> for FoldDbError
Conversion from SchemaError to FoldDbError
Source§fn from(error: SchemaError) -> Self
fn from(error: SchemaError) -> Self
Auto Trait Implementations§
impl Freeze for FoldDbError
impl !RefUnwindSafe for FoldDbError
impl Send for FoldDbError
impl Sync for FoldDbError
impl Unpin for FoldDbError
impl !UnwindSafe for FoldDbError
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
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<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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.