You are here

public function JsonRpcException::getResponse in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/Exception/JsonRpcException.php \Drupal\jsonrpc\Exception\JsonRpcException::getResponse()

The appropriate JSON-RPC error response for the exception.

Return value

\Drupal\jsonrpc\Object\Response The RPC response object.

File

src/Exception/JsonRpcException.php, line 46

Class

JsonRpcException
Custom exception class for the module.

Namespace

Drupal\jsonrpc\Exception

Code

public function getResponse() {
  return $this->response;
}