Skip to main content

extract_error_code

Function extract_error_code 

Source
pub fn extract_error_code(body: &Value) -> Option<(i64, &str)>
Expand description

Extract the JSON-RPC error code from a response body (if it’s an error response).