(code: ErrorCode, msg: impl Into<String>)
| 77 | } |
| 78 | |
| 79 | fn rpc_err(code: ErrorCode, msg: impl Into<String>) -> ErrorObjectOwned { |
| 80 | ErrorObjectOwned::owned(code.code(), msg.into(), None::<()>) |
| 81 | } |
| 82 | |
| 83 | fn validation_err(reason: &'static str, msg: impl Into<String>) -> ErrorObjectOwned { |
| 84 | BundleApiMetrics::validation_errors(reason).increment(1); |
no test coverage detected