JsonRpcException

Exceptions defined by the protocol.

Parameters

code

A Number that indicates the error type that occurred.

message

SHOULD be limited to a concise single sentence.

data

A primitive or structured value that contains additional information about the error. The value of this member is defined by the server. May be omitted.

Inheritors

Types

Link copied to clipboard
@Serializable
value class Code(val value: Int)
Link copied to clipboard
class InternalError(message: String, data: JsonElement? = null) : JsonRpcException

Internal JSON-RPC error.

Link copied to clipboard
class InvalidParams(message: String, data: JsonElement? = null) : JsonRpcException

Invalid method parameter(s).

Link copied to clipboard
class InvalidRequest(message: String, data: JsonElement? = null) : JsonRpcException

The JSON sent is not a valid Request object.

Link copied to clipboard
class MethodNotFound(message: String, data: JsonElement? = null) : JsonRpcException

The method does not exist / is not available

Link copied to clipboard
class ParseError(message: String, data: JsonElement? = null) : JsonRpcException

Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.

Link copied to clipboard
class ServerError(code: Int, message: String, data: JsonElement? = null) : JsonRpcException

Reserved for implementation-defined server-errors.

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
val data: JsonElement?
Link copied to clipboard
open override val message: String