Type Definition ocl_core::error::Result
[−]
[src]
type Result<T> = Result<T, Error>;
Ocl error result type.
Trait Implementations
impl<T> ChainErr<T, Error> for Result<T>
[src]
fn chain_err<F, E>(self, callback: F) -> Result<T> where
F: FnOnce() -> E,
E: Into<Error>,
[src]
F: FnOnce() -> E,
E: Into<Error>,
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. Read more