Struct throw::Error[][src]

pub struct Error<E> { /* fields omitted */ }

Represents an error. Stores an original error of type E, and any number of ErrorPoints at which the error was propagated.

Methods

impl<E> Error<E>
[src]

Creates a new Error with no ErrorPoints

Important traits for &'a [u8]

get context

Important traits for &'a [u8]

Gets all ErrorPoints where this Error was thrown. These are in reverse order, with the first time it was thrown first and the latest time it was thrown last.

Important traits for &'a mut R

Deprecated

Gets the original error which this Error was constructed with.

Important traits for &'a mut R

Gets the original error which this Error was constructed with.

Move the original error out.

Take out the original error and transform into another type where the original error can transform into that type.

Transforms this Error into Error. This isn't implemented as an Into or From implementation because it would conflict with the blanket implementations in stdlib.

Trait Implementations

impl<E> Display for Error<E> where
    E: Display
[src]

Formats the value using the given formatter. Read more

impl<E> Debug for Error<E> where
    E: Debug
[src]

Formats the value using the given formatter. Read more

impl<E> Error for Error<E> where
    E: Error
[src]

This method is soft-deprecated. Read more

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

Auto Trait Implementations

impl<E> Send for Error<E> where
    E: Send

impl<E> Sync for Error<E> where
    E: Sync