Enum liquid::Error [] [src]

pub enum Error {
    Lexer(String),
    Parser(String),
    Render(String),
    Filter(FilterError),
    Other(String),
    Io(Error),
}

Variants

Lexer(String)Parser(String)Render(String)Filter(FilterError)Other(String)Io(Error)

Methods

impl Error
[src]

fn parser<T>(expected: &str, actual: Option<&Token>) -> Result<T>

fn renderer<T>(msg: &str) -> Result<T>

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<String> for Error
[src]

fn from(err: String) -> Error

Performs the conversion.

impl<'a> From<&'a str> for Error
[src]

fn from(err: &'a str) -> Error

Performs the conversion.

impl From<FilterError> for Error
[src]

fn from(err: FilterError) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error
[src]

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