Skip to main content

iam_error

Macro iam_error 

Source
macro_rules! iam_error {
    ($code:ident) => { ... };
    ($code:ident, $msg:expr) => { ... };
}
Expand description

Create an IamError from an error code.

§Examples

let err = iam_error!(ConcurrentModificationException);
assert_eq!(err.code, IamErrorCode::ConcurrentModificationException);