You are here

final public function RestfulException::getDescription in RESTful 7.2

Gets the description of the exception.

Return value

string The description.

File

src/Exception/RestfulException.php, line 48
Contains \Drupal\restful\Exception\RestfulException.

Class

RestfulException

Namespace

Drupal\restful\Exception

Code

public final function getDescription() {
  return $this->description ? $this->description : Response::$statusTexts[$this
    ->getCode()];
}