pub enum KonfigError {
ValidationError(String),
OnLoadError(String),
MarshalError(String),
UnmarshalError(String),
LoadError(String),
SaveError(String),
RegistrationError(String),
Other(Box<dyn Error>),
}
Expand description
This is the error enum for konfig-rust, it contains all possible errors returned by konfig-rust
Always make sure to check for relevant error types
Variants§
ValidationError(String)
OnLoadError(String)
MarshalError(String)
UnmarshalError(String)
LoadError(String)
SaveError(String)
RegistrationError(String)
Other(Box<dyn Error>)
Trait Implementations§
Source§impl Debug for KonfigError
impl Debug for KonfigError
Source§impl Display for KonfigError
impl Display for KonfigError
Source§impl Error for KonfigError
impl Error for KonfigError
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 KonfigError
impl !RefUnwindSafe for KonfigError
impl !Send for KonfigError
impl !Sync for KonfigError
impl Unpin for KonfigError
impl !UnwindSafe for KonfigError
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