Error

data class Error<out E>(val id: RequestId?, val error: JSONRPCError<E>) : JSONRPCResponse<Nothing, E> (source)

A failed JSON-RPC 2.0 response carrying an error object.

Type Parameters

E

The type of the error's optional data field.

Constructors

Link copied to clipboard
constructor(id: RequestId?, error: JSONRPCError<E>)

Properties

Link copied to clipboard
@SerialName(value = "error")
val error: JSONRPCError<E>

The error object describing the failure.

Link copied to clipboard
@SerialName(value = "id")
open override val id: RequestId?

The request identifier, or null if the id could not be determined.

Link copied to clipboard
@SerialName(value = "jsonrpc")
val jsonrpc: String

The JSON-RPC version string. Always "2.0".