Macro tracerr::new[][src]

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

Captures a new Frame in the invocation place and wraps the given error into a Traced wrapper containing this Frame. If the error represents a Traced already, then just growths 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);