Function cfx_rpc_utils::error::jsonrpc_error_helpers::rpc_err
source · pub fn rpc_err(code: i32, msg: impl Into<String>, data: Option<&[u8]>) -> Error
Expand description
Constructs a JSON-RPC error, consisting of code
, message
and optional
data
.