reth::core::rpc::result

Function 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