[][src]Macro glsp::error

macro_rules! error {
    () => { ... };
    ($val:expr) => { ... };
    ($fmt:literal, $($arg:tt)+) => { ... };
}

Constructs a GError by formatting a string.

This is usually more convenient than calling GError's constructors directly.

error!() is equivalent to GError::new().

error!(x) is equivalent to GError::from_val(x).

error!("{}", a) is equivalent to GError::from_str(&format!("{}", a)).