Enum mage::Error
[−]
pub enum Error { UnpairedBrackets, ExpectIf, CanNotClose, UnexpectedNode, Io(IOError), Expression(ExpressionError), CanNotRender, ExpectArrayOrObject, ExpectedBoolean, InvalidSetBlock, InvalidForBlock, }
Template parsing error
Variants
UnpairedBrackets
Unpaired brackets. you may have symtax like {{ {{ , if you really want that, you should write {{ {{
ExpectIf
Expect if
keyword but the given isn't.
CanNotClose
Can not close this node.
UnexpectedNode
Found unexpected node.
Io(IOError)
IO Error.
Expression(ExpressionError)
Expression error.
CanNotRender
Can not render.
ExpectArrayOrObject
Expect array or object but the given isn't.
ExpectedBoolean
Expect boolean but the given isn't.
InvalidSetBlock
Invalid set
block.
InvalidForBlock
Invalid for
block
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
impl Error for Error
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<IOError> for Error
impl From<ExpressionError> for Error
fn from(error: ExpressionError) -> Error
Performs the conversion.