Enum twig::error::Error [] [src]

pub enum Error {
    Template(At<TemplateError>),
    Engine(Caused<EngineError>),
    Runtime(TracedRuntimeError),
}

Variants

Template

Error lexing or parsing the template source file.

Engine

Error reading files, compiling templates or writing cache.

Runtime

Error executing template.

Trait Implementations

impl From<At<TemplateError>> for Error

fn from(inner: At<TemplateError>) -> Error

impl From<TracedRuntimeError> for Error

fn from(inner: TracedRuntimeError) -> Error

impl From<EngineError> for Error

fn from(inner: EngineError) -> Error

impl From<Caused<EngineError>> for Error

fn from(inner: Caused<EngineError>) -> Error

impl Display for Error

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

Derived Implementations

impl Debug for Error

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

impl Clone for Error

fn clone(&self) -> Error

fn clone_from(&mut self, source: &Self)