pub type RPCError = Error<String, Value>;Aliased Type§
pub struct RPCError {
pub code: ErrorCode,
pub message: String,
pub data: Option<Value>,
}Fields§
§code: ErrorCodeA Number that indicates the error type that occurred.
message: StringA String providing a short description of the error. The message SHOULD be limited to a concise single sentence
data: Option<Value>A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).