You are here

class RestfulNotFoundException in RESTful 7

@file Contains RestfulNotFoundException

Hierarchy

Expanded class hierarchy of RestfulNotFoundException

1 string reference to 'RestfulNotFoundException'
_restful_get_json_from_menu_status in ./restful.module
Convert a menu status response to a valid JSON.

File

exceptions/RestfulNotFoundException.php, line 8
Contains RestfulNotFoundException

View source
class RestfulNotFoundException extends RestfulException {

  /**
   * Defines the HTTP error code.
   *
   * @var int
   */
  protected $code = 404;

  /**
   * {@inheritdoc}
   */
  protected $description = 'Not Found.';

  /**
   * {@inheritdoc}
   */
  protected $instance = 'help/restful/problem-instances-not-found';

}

Members

Namesort descending Modifiers Type Description Overrides
RestfulException::$fieldErrors protected property Array keyed by the field name, and array of error messages as value.
RestfulException::$headers protected property Array of extra headers to set when throwing an exception.
RestfulException::addFieldError public function Add an error per field.
RestfulException::getDescription final public function Gets the description of the exception.
RestfulException::getFieldErrors public function Return an array with all the errors.
RestfulException::getHeaders public function Get the associative array of headers.
RestfulException::getInstance public function Get the URL to the error for the particular case.
RestfulException::getType public function Return a string to the common problem type.
RestfulException::setHeader public function Set a header.
RestfulNotFoundException::$code protected property Defines the HTTP error code.
RestfulNotFoundException::$description protected property Defines the description. Overrides RestfulException::$description
RestfulNotFoundException::$instance protected property Defines the instance resource. Overrides RestfulException::$instance