[−][src]Struct easy_error::Error
An error that is a human-targetted string plus an optional cause.
Fields
ctx: String
The human-targetting error string.
cause: Option<Box<dyn StdError + 'static>>
The optional cause of the error.
Methods
impl Error
[src]
pub fn new<S, E>(ctx: S, cause: E) -> Error where
S: Into<String>,
E: StdError + 'static,
[src]
S: Into<String>,
E: StdError + 'static,
Create a new error with the given cause.
ⓘImportant traits for Causes<'a>pub fn iter_causes(&self) -> Causes
[src]
ⓘImportant traits for Causes<'a>
Iterates over the causes of the error.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,