Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessDeniedHttpException.php

class AccessDeniedHttpException

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

Hierarchy

  • class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
    • class \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException extends \Symfony\Component\HttpKernel\Exception\HttpException

Expanded class hierarchy of AccessDeniedHttpException

27 files declare their use of AccessDeniedHttpException
AccessAwareRouter.php in core/lib/Drupal/Core/Routing/AccessAwareRouter.php
AuthenticationSubscriber.php in core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php
BatchController.php in core/modules/system/src/Controller/BatchController.php
BigPipeController.php in core/modules/big_pipe/src/Controller/BigPipeController.php
CacheableAccessDeniedHttpException.php in core/lib/Drupal/Core/Http/Exception/CacheableAccessDeniedHttpException.php

... See full list

File

vendor/symfony/http-kernel/Exception/AccessDeniedHttpException.php, line 18

Namespace

Symfony\Component\HttpKernel\Exception
View source
class AccessDeniedHttpException extends HttpException {
    public function __construct(string $message = '', ?\Throwable $previous = null, int $code = 0, array $headers = []) {
        parent::__construct(403, $message, $previous, $headers, $code);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AccessDeniedHttpException::__construct public function Overrides HttpException::__construct 1
HttpException::fromStatusCode public static function
HttpException::getHeaders public function Returns response headers. Overrides HttpExceptionInterface::getHeaders
HttpException::getStatusCode public function Returns the status code. Overrides HttpExceptionInterface::getStatusCode
HttpException::setHeaders public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal