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

A problem finding or reading the config file.

When a yaml file is missing a required component. Will return the missing component.

When a YAML file encounters a parsing error.

When there is a problem emitting yaml.

Handle a Box

Trait Implementations

impl Debug for ConfigError
[src]

Formats the value using the given formatter.

impl Display for ConfigError
[src]

Formats the value using the given formatter. Read more

impl StdError for ConfigError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for ConfigError
[src]

Performs the conversion.

impl From<ScanError> for ConfigError
[src]

Performs the conversion.

impl From<EmitError> for ConfigError
[src]

Performs the conversion.

impl From<Box<StdError>> for ConfigError
[src]

Performs the conversion.