Trait ocl_core::error::ChainErr [] [src]

pub trait ChainErr<T, E> {
    fn chain_err<F, IE>(self, callback: F) -> Result<T, Error>
    where
        F: FnOnce() -> IE,
        IE: Into<Error>
; }

An chainable error.

Required Methods

If the Result is an Err then chain_err evaluates the closure, which returns some type that can be converted to ErrorKind, boxes the original error to store as the cause, then returns a new error containing the original error.

Implementors