Macro ipinfo::err

source ·
macro_rules! err {
    ($kind:ident) => { ... };
    ($kind:ident, $msg:expr) => { ... };
    ($kind:ident, $fmt:expr, $($arg:tt)+) => { ... };
}
Expand description

Create a new error (of a given kind) with a formatted message

Example

#[macro_use] extern crate ipinfo;

let err = err!(HTTPClientError, "http client error");