class AccessDeniedHttpException

AccessDeniedHttpException.

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

Hierarchy

Expanded class hierarchy of AccessDeniedHttpException

25 files declare their use of AccessDeniedHttpException
AccessManager.php in drupal/core/lib/Drupal/Core/Access/AccessManager.php
Contains Drupal\Core\Access\AccessManager.
AccessSubscriber.php in drupal/core/lib/Drupal/Core/EventSubscriber/AccessSubscriber.php
Contains Drupal\Core\EventSubscriber\AccessSubscriber.
aggregator.admin.inc in drupal/core/modules/aggregator/aggregator.admin.inc
Administration page callbacks for the Aggregator module.
AggregatorController.php in drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php
Contains \Drupal\aggregator\Controller\AggregatorController.
book.pages.inc in drupal/core/modules/book/book.pages.inc
User page callbacks for the book module.

... 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