Enum micro_kit::config::ConfigError
[−]
[src]
pub enum ConfigError {
IoError(Error),
MissingComponent(String),
YamlSyntax(ScanError),
YamlEmit(EmitError),
Error(Box<StdError>),
}When loading a YAML file there maybe missing required components or bad YAML. This error type allows these errors to be propegated.
Variants
IoError(Error)A problem finding or reading the config file.
MissingComponent(String)When a yaml file is missing a required component. Will return the missing component.
YamlSyntax(ScanError)When a YAML file encounters a parsing error.
YamlEmit(EmitError)When there is a problem emitting yaml.
Error(Box<StdError>)Handle a Box
Trait Implementations
impl Debug for ConfigError[src]
impl Display for ConfigError[src]
impl StdError for ConfigError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<Error> for ConfigError[src]
fn from(err: Error) -> ConfigError
Performs the conversion.
impl From<ScanError> for ConfigError[src]
fn from(err: ScanError) -> ConfigError
Performs the conversion.
impl From<EmitError> for ConfigError[src]
fn from(err: EmitError) -> ConfigError
Performs the conversion.
impl From<Box<StdError>> for ConfigError[src]
fn from(err: Box<StdError>) -> ConfigError
Performs the conversion.