JsonRpcException
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.
at line 27
mixed
data()
Get the error data.
at line 35
JsonRpcResponse
toJsonRpcResponse()
Convert the exception to a JSON-RPC response.