Macro etrace::rethrow_err [−][src]
macro_rules! rethrow_err { ($kind:expr, $description:expr, $suberr:expr) => { ... }; ($kind:expr, $suberr:expr) => { ... }; ($suberr:expr) => { ... }; }
Creates a new error with a sub-error and returns it (return Err(created_error)
)
Use rethrow_err!(error)
to create an error with the same kind or use
rethrow_err!(kind, error)
to provide a new error-kind or use
rethrow_err!(kind, description, error)
to provide a new error-kind with an explicit
description