pub enum ConfigError {
    ConfigNotFound(String),
    ConfigRecursiveNotFound(String),
    ConfigTypeMismatch(String, &'static str, &'static str),
    ConfigParseError(StringString),
    ConfigRecursiveError(String),
    ConfigFileNotExists(PathBuf),
    ConfigFileNotSupported(PathBuf),
    RefValueRecursiveError,
    TooManyInstances(usize),
    LockPoisoned,
    ConfigCause(Box<dyn Error + 'static>),
}
Expand description

Configuration Error.

Variants

ConfigNotFound(String)

Config not found.

ConfigRecursiveNotFound(String)

Config not found when parsing placeholder.

ConfigTypeMismatch(String, &'static str, &'static str)

Config type mismatch.

ConfigParseError(StringString)

Config parse error.

ConfigRecursiveError(String)

Config recursively parsed.

ConfigFileNotExists(PathBuf)

Config file not exists.

ConfigFileNotSupported(PathBuf)

Config file not supported.

RefValueRecursiveError

Ref value recursive error.

TooManyInstances(usize)

Too many instances.

LockPoisoned

Lock failed.

ConfigCause(Box<dyn Error + 'static>)

Config parse error with other error.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.