pub enum ConrigError {
LangError(LangError),
FileSystemError(FileSystemError),
NoConfigurationFile,
}
Expand description
Any error triggerable by conrig
.
Variants§
LangError(LangError)
Error triggered by the serialization or deserialization of a particular language.
FileSystemError(FileSystemError)
Error triggered during the writing or reading of a configuration file.
NoConfigurationFile
This error indicates that the configuration cannot be found by the file searcher.
Consider adding a default path or creating an empty configuration before reading it.
Trait Implementations§
Source§impl Debug for ConrigError
impl Debug for ConrigError
Source§impl Display for ConrigError
impl Display for ConrigError
Source§impl Error for ConrigError
impl Error for ConrigError
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<FileSystemError> for ConrigError
impl From<FileSystemError> for ConrigError
Source§fn from(source: FileSystemError) -> Self
fn from(source: FileSystemError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConrigError
impl !RefUnwindSafe for ConrigError
impl Send for ConrigError
impl Sync for ConrigError
impl Unpin for ConrigError
impl !UnwindSafe for ConrigError
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