[][src]Macro tracerr::new

macro_rules! new {
    ($e:expr) => { ... };
}

Captures new Frame in the invocation place and wraps the given error into Traced wrapper containing this Frame. If the error is a Traced already then just growth its Trace with the captured Frame.

Examples

use tracerr::Traced;

let err: u32 = 89;
let err: Traced<u32> = tracerr::new!(err);
let err: Traced<u32> = tracerr::new!(err);