Enum askama::Error [−][src]
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
Fmt(Error)
formatting error
Json(Error)
json conversion error
Trait Implementations
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error