macro_rules! iam_error { ($code:ident) => { ... }; ($code:ident, $msg:expr) => { ... }; }
Create an IamError from an error code.
IamError
let err = iam_error!(ConcurrentModificationException); assert_eq!(err.code, IamErrorCode::ConcurrentModificationException);