class JsonRpcException extends Exception

Methods

__construct(string $message, int $code, mixed $requestId = null, mixed $data = null)

Create a JSON-RPC exception.

mixed
data()

Get the error data.

toJsonRpcResponse()

Convert the exception to a JSON-RPC response.

Details

at line 15
__construct(string $message, int $code, mixed $requestId = null, mixed $data = null)

Create a JSON-RPC exception.

Parameters

string $message
int $code
mixed $requestId
mixed $data

at line 27
mixed data()

Get the error data.

Return Value

mixed

at line 35
JsonRpcResponse toJsonRpcResponse()

Convert the exception to a JSON-RPC response.

Return Value

JsonRpcResponse