[−][src]Trait cron::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
Constructs an error from a kind, and generates a backtrace.
fn with_chain<E, K>(error: E, kind: K) -> Self where
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
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.
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 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 cron::error::Error[src]
type ErrorKind = ErrorKind
fn new(kind: ErrorKind, state: State) -> Error[src]
fn from_kind(kind: Self::ErrorKind) -> Self[src]
fn with_chain<E, K>(error: E, kind: K) -> Self where
E: Error + Send + 'static,
K: Into<Self::ErrorKind>, [src]
E: Error + Send + 'static,
K: Into<Self::ErrorKind>,
fn kind(&self) -> &Self::ErrorKind[src]
fn iter(&self) -> ErrorChainIter[src]
fn backtrace(&self) -> Option<&Backtrace>[src]
fn extract_backtrace(e: &(dyn Error + Send + 'static)) -> Option<Arc<Backtrace>>[src]
impl ChainedError for cron::example_generated::inner::Error[src]
type ErrorKind = ErrorKind
fn new(kind: ErrorKind, state: State) -> Error[src]
fn from_kind(kind: <Error as ChainedError>::ErrorKind) -> Error[src]
fn with_chain<E, K>(error: E, kind: K) -> Error where
E: Error + Send + 'static,
K: Into<<Error as ChainedError>::ErrorKind>, [src]
E: Error + Send + 'static,
K: Into<<Error as ChainedError>::ErrorKind>,
fn kind(&self) -> &<Error as ChainedError>::ErrorKind[src]
fn iter(&self) -> ErrorChainIter[src]
fn backtrace(&self) -> Option<&Backtrace>[src]
fn extract_backtrace(e: &(dyn Error + 'static + Send)) -> Option<Arc<Backtrace>>[src]
impl ChainedError for cron::example_generated::Error[src]
type ErrorKind = ErrorKind
fn new(kind: ErrorKind, state: State) -> Error[src]
fn from_kind(kind: <Error as ChainedError>::ErrorKind) -> Error[src]
fn with_chain<E, K>(error: E, kind: K) -> Error where
E: Error + Send + 'static,
K: Into<<Error as ChainedError>::ErrorKind>, [src]
E: Error + Send + 'static,
K: Into<<Error as ChainedError>::ErrorKind>,