class NotFoundHttpException

NotFoundHttpException.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of NotFoundHttpException

26 files declare their use of NotFoundHttpException
BanDelete.php in drupal/core/modules/ban/lib/Drupal/ban/Form/BanDelete.php
Contains \Drupal\ban\Form\BanDelete.
book.pages.inc in drupal/core/modules/book/book.pages.inc
User page callbacks for the book module.
comment.admin.inc in drupal/core/modules/comment/comment.admin.inc
Admin page callbacks for the Comment module.
comment.module in drupal/core/modules/comment/comment.module
Enables users to comment on published content.
contact.pages.inc in drupal/core/modules/contact/contact.pages.inc
Page callbacks for the Contact module.

... See full list

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/NotFoundHttpException.php, line 19

Namespace

Symfony\Component\HttpKernel\Exception
View source
class NotFoundHttpException extends HttpException {

  /**
   * Constructor.
   *
   * @param string     $message  The internal exception message
   * @param \Exception $previous The previous exception
   * @param integer    $code     The internal exception code
   */
  public function __construct($message = null, \Exception $previous = null, $code = 0) {
    parent::__construct(404, $message, $previous, array(), $code);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpException::$headers private property
HttpException::$statusCode private property
HttpException::getHeaders public function Returns response headers. Overrides HttpExceptionInterface::getHeaders
HttpException::getStatusCode public function Returns the status code. Overrides HttpExceptionInterface::getStatusCode
NotFoundHttpException::__construct public function Constructor. Overrides HttpException::__construct