Enum tera::ErrorKind[][src]

pub enum ErrorKind {
Show 14 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

Tuple Fields of Msg

0: String
CircularExtend

A loop was found while looking up the inheritance chain

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

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)

Tuple Fields of TemplateNotFound

0: String
FilterNotFound(String)

A filter wasn’t found

Tuple Fields of FilterNotFound

0: String
TestNotFound(String)

A test wasn’t found

Tuple Fields of TestNotFound

0: String
InvalidMacroDefinition(String)

A macro was defined in the middle of a template

Tuple Fields of InvalidMacroDefinition

0: String
FunctionNotFound(String)

A function wasn’t found

Tuple Fields of FunctionNotFound

0: String
Json(Error)

An error happened while serializing JSON

Tuple Fields of Json

0: Error
CallFunction(String)

An error occured while executing a function.

Tuple Fields of CallFunction

0: String
CallFilter(String)

An error occured while executing a filter.

Tuple Fields of CallFilter

0: String
CallTest(String)

An error occured while executing a test.

Tuple Fields of CallTest

0: String

An IO error occured

Tuple Fields of Io

0: ErrorKind
Utf8Conversion

UTF-8 conversion error

This should not occur unless invalid UTF8 chars are rendered

Fields of Utf8Conversion

context: String

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

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

Performs the conversion.

Performs the conversion.

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.