Trait error_chain::ChainedError
[−]
[src]
pub trait ChainedError: Error + Send + 'static { type ErrorKind; fn from_kind(kind: Self::ErrorKind) -> Self where Self: Sized; fn kind(&self) -> &Self::ErrorKind; fn iter(&self) -> ErrorChainIter; fn backtrace(&self) -> Option<&Backtrace>; }
This trait is implemented on all the errors generated by the error_chain
macro.
Associated Types
type ErrorKind
Associated kind type.
Required Methods
fn from_kind(kind: Self::ErrorKind) -> Self where Self: Sized
Constructs an error from a kind, and generates a backtrace.
fn kind(&self) -> &Self::ErrorKind
Returns the kind of the error.
fn iter(&self) -> ErrorChainIter
Iterates over the error chain.
fn backtrace(&self) -> Option<&Backtrace>
Returns the backtrace associated with this error.