You are here

public function Error::getCode in JSON-RPC 2.x

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

Get the error's type code.

Return value

int The error code.

File

src/Object/Error.php, line 88

Class

Error
Error class to help implement JSON RPC's spec for errors.

Namespace

Drupal\jsonrpc\Object

Code

public function getCode() {
  return $this->code;
}