Enum askama::Error[][src]

pub enum Error {
    Fmt(Error),
    Json(Error),
    // some variants omitted
}

askama error type

Feature Interaction

If the feature serde-json is enabled an additional error variant Json is added.

Why not failure/error-chain?

Error from error-chain are not Sync which can lead to problems e.g. when this is used by a crate which use failure. Implementing Fail on the other hand prevents the implementation of std::error::Error until specialization lands on stable. While errors impl. Fail can be converted to a type impl. std::error::Error using a adapter the benefits failure would bring to this crate are small, which is why std::error::Error was used.

Variants

formatting error

json conversion error

Trait Implementations

impl Error for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error