MCPcopy Create free account
hub / github.com/base/base / rpc_err

Function rpc_err

crates/execution/txpool/src/bundle/rpc.rs:79–81  ·  view source on GitHub ↗
(code: ErrorCode, msg: impl Into<String>)

Source from the content-addressed store, hash-verified

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

Callers 7

pool_errMethod · 0.85
signer_public_keyMethod · 0.85
signer_attestationMethod · 0.85
fromMethod · 0.85
validation_errFunction · 0.85
send_bundleMethod · 0.85

Calls 1

codeMethod · 0.80

Tested by

no test coverage detected