Enum tera::ErrorKind[][src]

pub enum ErrorKind {
Show variants Msg(String), CircularExtend { tpl: String, inheritance_chain: Vec<String>, }, MissingParent { current: String, parent: String, }, TemplateNotFound(String), FilterNotFound(String), TestNotFound(String), InvalidMacroDefinition(String), FunctionNotFound(String), Json(Error), CallFunction(String), CallFilter(String), CallTest(String), Io(ErrorKind), Utf8Conversion { context: String, }, // some variants omitted
}
Expand description

The kind of an error (non-exhaustive)

Variants

Msg(String)

Generic error

CircularExtend

A loop was found while looking up the inheritance chain

Show fields

Fields of CircularExtend

tpl: String

Name of the template with the loop

inheritance_chain: Vec<String>

All the parents templates we found so far

MissingParent

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

Show fields

Fields of MissingParent

current: String

The template we are currently looking at

parent: String

The missing template

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

InvalidMacroDefinition(String)

A macro was defined in the middle of a template

FunctionNotFound(String)

A function wasn’t found

Json(Error)

An error happened while serializing JSON

CallFunction(String)

An error occured while executing a function.

CallFilter(String)

An error occured while executing a filter.

CallTest(String)

An error occured while executing a test.

An IO error occured

Utf8Conversion

UTF-8 conversion error

This should not occur unless invalid UTF8 chars are rendered

Show fields

Fields of Utf8Conversion

context: String

The context that indicates where the error occurs in the rendering process

Trait Implementations

impl Debug for ErrorKind[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V