Enum tera::ErrorKind

source ·
pub enum ErrorKind {
    Msg(String),
    CircularExtend {
        tpl: String,
        inheritance_chain: Vec<String>,
    },
    MissingParent {
        current: String,
        parent: String,
    },
    TemplateNotFound(String),
    FilterNotFound(String),
    TestNotFound(String),
    FunctionNotFound(String),
    Json(Error),
    // some variants omitted
}
Expand description

The kind of an error (non-exhaustive)

Variants§

§

Msg(String)

Generic error

§

CircularExtend

Fields

§tpl: String

Name of the template with the loop

§inheritance_chain: Vec<String>

All the parents templates we found so far

A loop was found while looking up the inheritance chain

§

MissingParent

Fields

§current: String

The template we are currently looking at

§parent: String

The missing template

A template is extending a template that wasn’t found in the Tera instance

§

TemplateNotFound(String)

A template was missing (more generic version of MissingParent)

§

FilterNotFound(String)

A filter wasn’t found

§

TestNotFound(String)

A test wasn’t found

§

FunctionNotFound(String)

A function wasn’t found

§

Json(Error)

An error happened while serializing JSON

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.