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
CircularExtend
Fields
A loop was found while looking up the inheritance chain
MissingParent
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
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.
Io(ErrorKind)
An IO error occured
Utf8Conversion
UTF-8 conversion error
This should not occur unless invalid UTF8 chars are rendered