Function reth::rpc::result::rpc_error_with_code

source ยท
pub fn rpc_error_with_code(
    code: i32,
    msg: impl Into<String>,
) -> ErrorObject<'static>
Expand description

Constructs an internal JSON-RPC error with code and message