Enum mage::Error
[−]
pub enum Error {
UnpairedBrackets,
ExpectIf,
CanNotClose,
UnexpectedNode,
Io(IOError),
Expression(ExpressionError),
CanNotRender,
ExpectArrayOrObject,
ExpectedBoolean,
InvalidSetBlock,
InvalidForBlock,
}Template parsing error
Variants
UnpairedBracketsUnpaired brackets. you may have symtax like {{ {{ , if you really want that, you should write {{ {{
ExpectIfExpect if keyword but the given isn't.
CanNotCloseCan not close this node.
UnexpectedNodeFound unexpected node.
Io(IOError)IO Error.
Expression(ExpressionError)Expression error.
CanNotRenderCan not render.
ExpectArrayOrObjectExpect array or object but the given isn't.
ExpectedBooleanExpect boolean but the given isn't.
InvalidSetBlockInvalid set block.
InvalidForBlockInvalid 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.