Enum rocket::config::ConfigError [] [src]

pub enum ConfigError {
    BadCWD,
    NotFound,
    IOError,
    BadFilePath(PathBuf, &'static str),
    BadEnv(String),
    BadEntry(StringPathBuf),
    BadType(String, &'static str, &'static strPathBuf),
    ParseError(StringPathBufVec<ParsingError>),
    BadEnvVal(StringString, &'static str),
}

The type of a configuration error.

Variants

The current working directory could not be determined.

The configuration file was not found.

There was an I/O error while reading the configuration file.

The path at which the configuration file was found was invalid.

Parameters: (path, reason)

An environment specified in ROCKET_ENV is invalid.

Parameters: (environment_name)

An environment specified as a table [environment] is invalid.

Parameters: (environment_name, filename)

A config key was specified with a value of the wrong type.

Parameters: (entry_name, expected_type, actual_type, filename)

There was a TOML parsing error.

Parameters: (toml_source_string, filename, error_list)

There was a TOML parsing error in a config environment variable.

Parameters: (env_key, env_value, expected type)

Methods

impl ConfigError
[src]

Prints this configuration error with Rocket formatting.

Whether this error is of NotFound variant.

Trait Implementations

impl Debug for ConfigError
[src]

Formats the value using the given formatter.

impl PartialEq for ConfigError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for ConfigError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for ConfigError
[src]

Formats the value using the given formatter.

impl Error for ConfigError
[src]

A short description of the error. Read more

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