Struct handlebars::TemplateError
[−]
[src]
pub struct TemplateError { pub reason: TemplateErrorReason, pub template_name: Option<String>, pub line_no: Option<usize>, pub column_no: Option<usize>, }
Error on parsing template.
Fields
reason: TemplateErrorReason
template_name: Option<String>
line_no: Option<usize>
column_no: Option<usize>
Methods
impl TemplateError
[src]
fn of(e: TemplateErrorReason) -> TemplateError
fn at(self, line_no: usize, column_no: usize) -> TemplateError
fn in_template(self, name: String) -> TemplateError
Trait Implementations
impl Debug for TemplateError
[src]
impl PartialEq for TemplateError
[src]
fn eq(&self, __arg_0: &TemplateError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TemplateError) -> bool
This method tests for !=
.
impl Error for TemplateError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more