#[non_exhaustive]pub enum ConfigulatorError {
FileNotFound,
FileError(String),
ParseError {
field: String,
value: String,
message: String,
},
ValidationError(Box<dyn Error + Send + Sync>),
CLIError(String),
}Expand description
Errors that can occur during configuration loading.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FileNotFound
Available on crate feature
file only.No config file was found in any of the specified paths.
FileError(String)
Available on crate feature
file only.Failed to read or parse a config file.
ParseError
Failed to parse a value from a string.
ValidationError(Box<dyn Error + Send + Sync>)
Validation failed.
CLIError(String)
Available on crate feature
cli only.A required configuration source had an issue.
Trait Implementations§
Source§impl Debug for ConfigulatorError
impl Debug for ConfigulatorError
Source§impl Display for ConfigulatorError
impl Display for ConfigulatorError
Source§impl Error for ConfigulatorError
impl Error for ConfigulatorError
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 !RefUnwindSafe for ConfigulatorError
impl !UnwindSafe for ConfigulatorError
impl Freeze for ConfigulatorError
impl Send for ConfigulatorError
impl Sync for ConfigulatorError
impl Unpin for ConfigulatorError
impl UnsafeUnpin for ConfigulatorError
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