[−][src]Trait error_chain::ChainedError
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,
Self: Sized,
Constructs an error from a kind, and generates a backtrace.
fn with_chain<E, K>(error: E, kind: K) -> Self where
Self: Sized,
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
Self: Sized,
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
Constructs a chained error from another error and a kind, and generates a backtrace.
fn kind(&self) -> &Self::ErrorKind
Returns the kind of the error.
ⓘImportant traits for ErrorChainIter<'a>
fn iter(&self) -> ErrorChainIter
Iterates over the error chain.
fn backtrace(&self) -> Option<&Backtrace>
Returns the backtrace associated with this error.
Provided Methods
fn display<'a>(&'a self) -> Display<'a, Self>
Returns an object which implements Display
for printing the full
context of this error.
The full cause chain and backtrace, if present, will be printed.
Implementors
impl ChainedError for error_chain::example_generated::inner::Error
[src]
impl ChainedError for error_chain::example_generated::inner::Error
type ErrorKind = ErrorKind
fn new(kind: ErrorKind, state: State) -> Error
[src]
fn new(kind: ErrorKind, state: State) -> Error
fn from_kind(kind: Self::ErrorKind) -> Self
[src]
fn from_kind(kind: Self::ErrorKind) -> Self
fn with_chain<E, K>(error: E, kind: K) -> Self where
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
[src]
fn with_chain<E, K>(error: E, kind: K) -> Self where
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
fn kind(&self) -> &Self::ErrorKind
[src]
fn kind(&self) -> &Self::ErrorKind
ⓘImportant traits for ErrorChainIter<'a>fn iter(&self) -> ErrorChainIter
[src]
ⓘImportant traits for ErrorChainIter<'a>
fn iter(&self) -> ErrorChainIter
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
fn extract_backtrace(e: &(Error + Send + 'static)) -> Option<Arc<Backtrace>>
[src]
fn extract_backtrace(e: &(Error + Send + 'static)) -> Option<Arc<Backtrace>>
fn display<'a>(&'a self) -> Display<'a, Self>
[src]
fn display<'a>(&'a self) -> Display<'a, Self>
impl ChainedError for error_chain::example_generated::Error
[src]
impl ChainedError for error_chain::example_generated::Error
type ErrorKind = ErrorKind
fn new(kind: ErrorKind, state: State) -> Error
[src]
fn new(kind: ErrorKind, state: State) -> Error
fn from_kind(kind: Self::ErrorKind) -> Self
[src]
fn from_kind(kind: Self::ErrorKind) -> Self
fn with_chain<E, K>(error: E, kind: K) -> Self where
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
[src]
fn with_chain<E, K>(error: E, kind: K) -> Self where
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
fn kind(&self) -> &Self::ErrorKind
[src]
fn kind(&self) -> &Self::ErrorKind
ⓘImportant traits for ErrorChainIter<'a>fn iter(&self) -> ErrorChainIter
[src]
ⓘImportant traits for ErrorChainIter<'a>
fn iter(&self) -> ErrorChainIter
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
fn extract_backtrace(e: &(Error + Send + 'static)) -> Option<Arc<Backtrace>>
[src]
fn extract_backtrace(e: &(Error + Send + 'static)) -> Option<Arc<Backtrace>>
fn display<'a>(&'a self) -> Display<'a, Self>
[src]
fn display<'a>(&'a self) -> Display<'a, Self>