Macro logs_error
Source macro_rules! logs_error {
($code:ident) => { ... };
($code:ident, $msg:expr) => { ... };
}
Expand description
Create an LogsError from an error code.
§Examples
ⓘlet err = logs_error!(ValidationException);
assert_eq!(err.code, LogsErrorCode::ValidationException);