pub enum ConfigError {
}Expand description
Errors related to configuration handling in the application.
This enum defines various errors that can occur while handling configuration files, such as reading files, parsing different formats, and dealing with environment variables.
Variants§
ReadFileError(String)
Error that occurs when reading a file fails.
ParseYamlError(String)
Error that occurs when parsing a YAML file fails.
ParseJsonError(String)
Error that occurs when parsing a JSON file fails.
ParseTomlError(String)
Error that occurs when parsing a TOML file fails.
EnvVarError(String)
Error that occurs when an environment variable is not found.
UnknownFluxType(String)
Error that occurs when an unknown flux type is encountered.
InvalidConfig(String)
Error that occurs when the configuration is invalid.
ReadError(Error)
FileReadError(String)
ParseError(Error)
NotFound
ConfigArgError(String)
SelectionError(String)
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ConfigError> for FluxError
impl From<ConfigError> for FluxError
Source§fn from(error: ConfigError) -> Self
fn from(error: ConfigError) -> Self
Converts a ConfigError into a FluxError::UnauthorizedError.
This implementation uses the t! macro to fetch the localized error message.
§Arguments
error- The configuration error to be converted.
Source§impl From<ConfigError> for KeyError
impl From<ConfigError> for KeyError
Source§fn from(error: ConfigError) -> Self
fn from(error: ConfigError) -> Self
Converts a ConfigError into a KeyError::ResolveKeyError.
This implementation uses the t! macro to fetch the localized error message.
§Arguments
error- The configuration error to be converted.
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
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.