Macro etrace::try_err[][src]

macro_rules! try_err {
    ($code:expr, $kind:expr, $description:expr) => { ... };
    ($code:expr, $kind:expr) => { ... };
    ($code:expr) => { ... };
}

Runs an expression and returns either the unwrapped result or creates a new error with the returned error as sub-error and returns the new error (return Err(Error<T>))

Use try_err!(expression) to adopt the underlying error-kind and description or use try_err!(expression, kind) to create an error with an automatically created description or use try_err!(expression, kind, description) to provide an explicit description