Function reth::core::rpc::result::rpc_err

source ยท
pub fn rpc_err(
    code: i32,
    msg: impl Into<String>,
    data: Option<&[u8]>,
) -> ErrorObject<'static>
Expand description

Constructs a JSON-RPC error, consisting of code, message and optional data.