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
The kind of an error (non-exhaustive)
Variants
Msg(String)
Generic error
A loop was found while looking up the inheritance chain
Fields of CircularExtend
A template is extending a template that wasn’t found in the Tera instance
Fields of MissingParent
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
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
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,