Creates an error JSON-RPC response.
(id: serde_json::Value, code: ErrorCode, message: String)
| 62 | |
| 63 | /// Creates an error JSON-RPC response. |
| 64 | pub fn error(id: serde_json::Value, code: ErrorCode, message: String) -> Self { |
| 65 | Self::error_with_data(id, code, message, None) |
| 66 | } |
| 67 | |
| 68 | /// Creates an error JSON-RPC response with optional structured data. |
| 69 | pub fn error_with_data( |
no outgoing calls
no test coverage detected