Creates a `CodeError` with an explicit code and message. Mirrors Go `xerr.NewErrCodeMsg`.
(err_code: u32, err_msg: impl Into<String>)
| 32 | /// |
| 33 | /// Mirrors Go `xerr.NewErrCodeMsg`. |
| 34 | pub fn new_err_code_msg(err_code: u32, err_msg: impl Into<String>) -> Self { |
| 35 | Self { |
| 36 | err_code, |
| 37 | err_msg: err_msg.into(), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /// Creates a `CodeError` for an unspecified failure (`ERROR` code). |
| 42 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected