You are here

public function Response::isErrorResponse in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 src/Object/Response.php \Drupal\jsonrpc\Object\Response::isErrorResponse()

Checks if this is an error or result response.

Return value

bool True if it's an error response.

1 call to Response::isErrorResponse()
Response::isResultResponse in src/Object/Response.php
Checks if this is an error or result response.

File

src/Object/Response.php, line 141

Class

Response
Response object to help implement JSON RPC's spec for response objects.

Namespace

Drupal\jsonrpc\Object

Code

public function isErrorResponse() {
  return isset($this->error);
}