Enum askama_shared::Error [−][src]
pub enum Error { Fmt(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
Fmt(Error)
formatting error
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ErrorTrait for Error
[src]
impl ErrorTrait for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&ErrorTrait>
[src]
fn cause(&self) -> Option<&ErrorTrait>
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
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error