pub enum ConfigError {
Show 15 variants
FileError(Error),
SerializationError(Error),
YamlError(Error),
TomlError(Error),
KeyNotFound {
key: String,
},
TypeConversion {
from: String,
to: String,
},
ValidationError(String),
NetworkError(Error),
AuthenticationError(String),
SourceInitializationError(String),
WatcherError(String),
FileSystemError(Error),
LockTimeout {
timeout_ms: u64,
},
ConflictError(String),
Other(String),
}Expand description
Main error type for configuration operations
Variants§
FileError(Error)
Error reading or parsing configuration file
SerializationError(Error)
Error serializing or deserializing configuration
YamlError(Error)
Error parsing YAML configuration
TomlError(Error)
Error parsing TOML configuration
KeyNotFound
Configuration key not found
TypeConversion
Type conversion error
ValidationError(String)
Schema validation error
NetworkError(Error)
Network error when accessing remote configuration
AuthenticationError(String)
Authentication error for remote sources
SourceInitializationError(String)
Configuration source initialization error
WatcherError(String)
Configuration watcher error
FileSystemError(Error)
File system watching error
LockTimeout
Lock acquisition timeout
ConflictError(String)
Configuration conflict in distributed environment
Other(String)
Generic configuration error
Implementations§
Source§impl ConfigError
impl ConfigError
Sourcepub fn validation_error<S: Into<String>>(msg: S) -> Self
pub fn validation_error<S: Into<String>>(msg: S) -> Self
Create a new validation error
Sourcepub fn auth_error<S: Into<String>>(msg: S) -> Self
pub fn auth_error<S: Into<String>>(msg: S) -> Self
Create a new authentication error
Sourcepub fn source_init_error<S: Into<String>>(msg: S) -> Self
pub fn source_init_error<S: Into<String>>(msg: S) -> Self
Create a new source initialization error
Sourcepub fn watcher_error<S: Into<String>>(msg: S) -> Self
pub fn watcher_error<S: Into<String>>(msg: S) -> Self
Create a new watcher error
Sourcepub fn conflict_error<S: Into<String>>(msg: S) -> Self
pub fn conflict_error<S: Into<String>>(msg: S) -> Self
Create a new conflict error
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<ValidationError<'_>> for ConfigError
impl From<ValidationError<'_>> for ConfigError
Source§fn from(err: ValidationError<'_>) -> Self
fn from(err: ValidationError<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigError
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
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