public function JsonRpcException::getResponse in JSON-RPC 2.x
Same name and namespace in other branches
- 8 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\ExceptionCode
public function getResponse() {
return $this->response;
}