pub enum EverythingError {
SDKError(EverythingSDKError),
DatabaseTimeout,
NullPointerError,
}
Variants§
Implementations§
Source§impl EverythingError
impl EverythingError
Sourcepub fn to_user_friendly_message(&self) -> String
pub fn to_user_friendly_message(&self) -> String
Returns a user-friendly error message with hints on how to resolve the issue
Trait Implementations§
Source§impl Debug for EverythingError
impl Debug for EverythingError
Source§impl Display for EverythingError
impl Display for EverythingError
Source§impl Error for EverythingError
impl Error for EverythingError
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<EverythingSDKError> for EverythingError
impl From<EverythingSDKError> for EverythingError
Source§fn from(source: EverythingSDKError) -> Self
fn from(source: EverythingSDKError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EverythingError
impl RefUnwindSafe for EverythingError
impl Send for EverythingError
impl Sync for EverythingError
impl Unpin for EverythingError
impl UnwindSafe for EverythingError
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