pub enum HelperError {
Show 13 variants
Message(String),
BlockTemplate(String),
BlockTemplateNotAllowed(String),
ArityExact(String, usize),
ArityRange(String, usize, usize),
ArgumentTypeString(String, usize),
LookupField(String, String),
InvalidNumericalOperand(String),
TypeAssert(String, String, String),
Syntax(SyntaxError),
Render(Box<RenderError>),
Io(IoError),
Json(Error),
}
Expand description
Errors generated by helpers.
Variants§
Message(String)
Generic error message for helpers.
BlockTemplate(String)
Error when asserting that a helper expects an inner template.
BlockTemplateNotAllowed(String)
Error when asserting that a helper does not allow an inner template.
ArityExact(String, usize)
Error when supplied arguments do not match an exact arity.
ArityRange(String, usize, usize)
Error when supplied arguments do not match an arity range.
ArgumentTypeString(String, usize)
Error when a helper expects a string argument.
LookupField(String, String)
Error when a field could not be resolved.
InvalidNumericalOperand(String)
Error when the operand to a numerical helper is invalid (not a number).
TypeAssert(String, String, String)
Error when a type assertion fails,
Syntax(SyntaxError)
Proxy for syntax errors that occur via helpers.
For example when dynamically evaluating paths passed to
the evaluate()
function.
Render(Box<RenderError>)
Proxy for render errors that occur via helpers; for example when rendering inner templates.
Io(IoError)
Proxy I/O errors.
Json(Error)
Proxy JSON errors.