[][src]Enum grandma::errors::ParsingError

pub enum ParsingError {
    MalformedYamlError {
        file_name: String,
        field: String,
    },
    MissingYamlError {
        file_name: String,
        field: String,
    },
    ProtobufError(ProtobufError),
    CSVReadError {
        file_name: String,
        line_number: usize,
        key: String,
    },
    RegularParsingError(&'static str),
}

A parsing error occored while doing something with text

Variants

MalformedYamlError

Yaml was messed up

Fields of MalformedYamlError

file_name: String

The file that was messed up

field: String

The value that was messed up

MissingYamlError

A needed field was missing from the file.

Fields of MissingYamlError

file_name: String

The file

field: String

The missing field

ProtobufError(ProtobufError)

Some protobuff error happened

CSVReadError

An error reading the CSV

Fields of CSVReadError

file_name: String

The file that the error occored in

line_number: usize

The line that was messed up

key: String

The column name that was messed up

RegularParsingError(&'static str)

Something else happened parsing a string

Trait Implementations

impl Debug for ParsingError[src]

impl Display for ParsingError[src]

impl Error for ParsingError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,