Skip to main content

build_error_message

Function build_error_message 

Source
pub fn build_error_message<S: JsonRpcSerializer>(
    id: Option<&S::Value>,
    code: i64,
    message: &str,
) -> String
Expand description

Build a JSON-RPC 2.0 error message.

A None id is encoded as JSON null, matching the original transport.