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]
fn new(error: E) -> Error<E>
Creates a new Error with no ErrorPoints
fn points(&self) -> &[ErrorPoint]
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.
fn original_error(&self) -> &E
Gets the original error which this Error was constructed with.
fn into_origin(self) -> E
Move the original error out.
fn transform<NE>(self) -> Error<NE> where
E: Into<NE>,
E: Into<NE>,
Transforms this Error
Trait Implementations
impl<E> Display for Error<E> where
E: Display,
[src]
E: Display,
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<E> Debug for Error<E> where
E: Debug,
[src]
E: Debug,