Macro etrace::try_err_from[][src]

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

Runs an expression and returns either the unwrapped result or converts the error into the matching Error<T> (using a From-trait) and returns it (return Err(Error<T>))

Use try_err_from!(expression) to create an error with an automatically created description or use try_err_from!(expression, description) to provide an explicit description