Enum trimmer::DataError []

pub enum DataError {
    AttrUnsupported(&'static str),
    AttrNotFound,
    IndexUnsupported(&'static str),
    StrKeyUnsupported(&'static str),
    IntKeyUnsupported(&'static str),
    IndexNotFound,
    OutputUnsupported(&'static str),
    OutputError(&'static str),
    UnknownValidator(String),
    RegexValidationError(StringString),
    BoolUnsupported(&'static str),
    NumberUnsupported(&'static str),
    ComparisonUnsupported(&'static str),
    IterationUnsupported(&'static str),
    PairIterationUnsupported(&'static str),
    VariableNotFound(String),
    Incomparable(&'static str, &'static str),
    Custom(Box<Error>),
    // some variants omitted
}

This error is used to describe invalid variable usage in template

Variants

Unsupported get attribute operation

No suche attribute on this object

Unsupported subscription operation

Unsupported using this object as a key in dictionary subscription

Unsupported using this object as a key in array subscription

No such index on this object

The object can't be output

The object can't be output

Named validator is not known

Output did not match regex

The object can't be boolean

The object can't be a number

The object can't be compared to

The object can't be iterated over

The object can't be iterated over by pairs

Variable or attribute not found

Incomparable types

Custom error

Trait Implementations

impl Debug for DataError
[src]

[src]

Formats the value using the given formatter.

impl Display for DataError

Formats the value using the given formatter. Read more

impl Error for DataError

A short description of the error. Read more

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