Macro nes::create_err [] [src]

macro_rules! create_err {
    ( $error:path ) => { ... };
    ( $error:path, $( $arg:expr ),* ) => { ... };
}

This macro creates error that gets information, where the error has been occurred. You can insert it into other error.

# Example

let error=Box::new(create_err!(handler::Error::BrockenChannel));
return err!(Error::HandlerThreadCrash, error, ThreadSource::Handler);