[go: up one dir, main page]

Struct askama::Error [] .html#31-34' title='goto source code'>[src]

pub struct Error(pub ErrorKind, _);

The Error type.

This tuple struct is made of two elements:

  • an ErrorKind which is used to determine the type of the error.
  • An internal State, not meant for direct use outside of error_chain internals, containing:
    • a backtrace, generated when the error is created.
    • an error chain, used for the implementation of Error::cause().

Methods

impl Error
.html#50-75' title='goto source code'>[src]

.html#52-53' title='goto source code'>[src]

Constructs an error from a kind, and generates a backtrace.

.html#55-57' title='goto source code'>[src]

Constructs a chained error from another error and a kind, and generates a backtrace.

.html#59-64' title='goto source code'>[src]

Construct a chained error from another boxed error and a kind, and generates a backtrace

.html#65' title='goto source code'>[src]

Returns the kind of the error.

.html#67-68' title='goto source code'>[src]

Iterates over the error chain.

.html#70-71' title='goto source code'>[src]

Returns the backtrace associated with this error.

.html#72-75' title='goto source code'>[src]

Extends the error chain with a new entry.

Trait Implementations

impl From<Error> for Error
.html#93-97' title='goto source code'>[src]

impl From<Error> for Error
.html#93-97' title='goto source code'>[src]

impl From<ErrorKind> for Error
.html#97-99' title='goto source code'>[src]

impl<'a> From<&'a str> for Error
.html#99-101' title='goto source code'>[src]

impl From<String> for Error
.html#101-103' title='goto source code'>[src]

impl Deref for Error
.html#103-105' title='goto source code'>[src]

impl ChainedError for Error
.html#34-49' title='goto source code'>[src]

impl Debug for Error
.html#31' title='goto source code'>[src]

impl Error for Error
.html#75-85' title='goto source code'>[src]

impl Display for Error
.html#86-88' title='goto source code'>[src]