Returns `true` when the code is a known, registered error code. Mirrors Go `xerr.IsCodeErr`.
(err_code: u32)
| 201 | /// |
| 202 | /// Mirrors Go `xerr.IsCodeErr`. |
| 203 | pub fn is_code_err(err_code: u32) -> bool { |
| 204 | MESSAGES.contains_key(&err_code) |
| 205 | } |
| 206 | |
| 207 | #[cfg(test)] |
| 208 | mod tests { |
nothing calls this directly
no outgoing calls
no test coverage detected