Enum valid_toml::Error [] [src]

pub enum Error {
    FileError(Error),
    Missing(String),
    Parse(usizeusizeString),
    Validation(StringValidationError),
}

This enumeration identifies various errors that may occur when reading a TOML file.

Variants

FileError(Error)

There was a problem accessing the file.

Missing(String)

A required item is missing, contains the ID of the missing item.

Parse(usizeusizeString)

There was an error parsing the TOML file. Contains the row, column of the error as well as the actual error message.

Validation(StringValidationError)

There was an error validation an element inside the TOML file. Contains the ID of the item that caused the issue as well as the problem.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Display a nice message for the warning.