class AccessDeniedHttpException

AccessDeniedHttpException.

@author Fabien Potencier <fabien@symfony.com> @author Christophe Coevoet <stof@notk.org>

Hierarchy

Expanded class hierarchy of AccessDeniedHttpException

18 files declare their use of AccessDeniedHttpException
AccessManager.php in drupal/core/lib/Drupal/Core/Access/AccessManager.php
Contains Drupal\Core\Access\AccessManager.
aggregator.admin.inc in drupal/core/modules/aggregator/aggregator.admin.inc
Admin page callbacks for the aggregator module.
book.pages.inc in drupal/core/modules/book/book.pages.inc
User page callbacks for the book module.
comment.pages.inc in drupal/core/modules/comment/comment.pages.inc
User page callbacks for the Comment module.
common.inc in drupal/core/includes/common.inc
Common functions that many Drupal modules will need to reference.

... See full list

File

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

Namespace

Symfony\Component\HttpKernel\Exception
View source
class AccessDeniedHttpException 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(403, $message, $previous, array(), $code);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AccessDeniedHttpException::__construct public function Constructor. Overrides HttpException::__construct
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