Type alias JSONRPCResponseError

JSONRPCResponseError: {
    code: number;
    data?: JSONValue;
    message: string;
}

This is a JSON RPC error object, it encodes the error data for the JSONRPCResponseFailed object.

Type declaration

  • code: number

    A Number that indicates the error type that occurred. This MUST be an integer.

  • Optional data?: JSONValue

    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.).

  • message: string

    A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.

Generated using TypeDoc