You are here

class AccessDeniedHttpException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Exception/AccessDeniedHttpException.php \Symfony\Component\HttpKernel\Exception\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
AccessAwareRouter.php in core/lib/Drupal/Core/Routing/AccessAwareRouter.php
Contains \Drupal\Core\Routing\AccessAwareRouter.
AccessDeniedSubscriber.php in core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php
Contains \Drupal\user\EventSubscriber\AccessDeniedSubscriber.
AuthenticationSubscriber.php in core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php
Contains \Drupal\Core\EventSubscriber\AuthenticationSubscriber.
BatchController.php in core/modules/system/src/Controller/BatchController.php
Contains \Drupal\system\Controller\BatchController.
CommentController.php in core/modules/comment/src/Controller/CommentController.php
Contains \Drupal\comment\Controller\CommentController.

... See full list

File

vendor/symfony/http-kernel/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 int        $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