pub enum ProfileKitError {
Database(String),
NotFound,
InvalidInput(String),
MissingPreferences,
AlreadyExists,
StorageError,
}Expand description
Errors that may occur during operations related to a user profile.
Variants§
Database(String)
A general database error, containing an underlying message from the database layer.
NotFound
Returned when a requested user profile could not be found.
InvalidInput(String)
Returned when the input provided to a function is considered invalid. Includes a message describing the reason.
MissingPreferences
Returned when user preferences are required but missing in the profile.
AlreadyExists
Returned when attempting to create a user profile that already exists.
StorageError
A generic storage-related error, usually from file systems, in-memory stores, or cloud buckets.
Trait Implementations§
Source§impl Debug for ProfileKitError
impl Debug for ProfileKitError
Source§impl Display for ProfileKitError
impl Display for ProfileKitError
Source§impl Error for ProfileKitError
impl Error for ProfileKitError
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 ProfileKitError
impl RefUnwindSafe for ProfileKitError
impl Send for ProfileKitError
impl Sync for ProfileKitError
impl Unpin for ProfileKitError
impl UnsafeUnpin for ProfileKitError
impl UnwindSafe for ProfileKitError
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