A class representing a JSON-RPC 2.0 error object.

Public fields

code

Numeric JSON-RPC error code

message

Message for the error

data

Any additional data associated with the error

Methods

Public methods


Method new()

Initialize a JSON-RPC error

Usage

JsonRpcError$new(code = NULL, message = NULL, data = NULL)

Arguments

code

Numeric JSON-RPC error code

message

Message for the error

data

Any additional data associated with the error


Method dehydrate()

Dehydrate the error to a list

Usage

JsonRpcError$dehydrate()


Method clone()

The objects of this class are cloneable with this method.

Usage

JsonRpcError$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.