Trait error_chain::ChainedError
[−]
[src]
pub trait ChainedError: Error + Send + 'static { type ErrorKind; fn new(kind: Self::ErrorKind, state: State) -> Self; fn extract_backtrace(e: &Error + Send + 'static)
-> Option<Option<Arc<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 new(kind: Self::ErrorKind, state: State) -> Self
Creates an error from it's parts.
fn extract_backtrace(e: &Error + Send + 'static)
-> Option<Option<Arc<Backtrace>>>
-> Option<Option<Arc<Backtrace>>>
Returns the first known backtrace, either from it's State or from one
of the errors from foreign_links
.