Enum armorlib::errors::ArmorlibError [] [src]

pub enum ArmorlibError {
    UnknownProcessingError(String),
    ParseError(String),
    MissingPreprocessor(String),
    MissingMetadata(String),
    ReadFileError(String),
}

An enum that represents an error specific to ArmorLib. This enum implements std:error::Error.

Variants

For use when an unknown processing error occurs.

For use when a parsing error, such as that between a string and a number, occurs. The attached String is a human-meaningful description of the error.

For use when a preprocessor is missing. The attached String is the name of the preprocessor.

For use when an expected key is missing from a preprocessor's metadata. The attached String is the key's path in the format <preprocessor>/<key>, following the convention defined by ScanObject::get_metadata.

For use when an error occurs while reading a file.

Trait Implementations

impl Debug for ArmorlibError
[src]

[src]

Formats the value using the given formatter.

impl Clone for ArmorlibError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for ArmorlibError
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ArmorlibError
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ArmorlibError
[src]

impl Display for ArmorlibError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for ArmorlibError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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