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

Breadcrumb

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

class CacheableBadRequestHttpException

A cacheable BadRequestHttpException.

Hierarchy

  • class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
    • class \Symfony\Component\HttpKernel\Exception\BadRequestHttpException extends \Symfony\Component\HttpKernel\Exception\HttpException
      • class \Drupal\Core\Http\Exception\CacheableBadRequestHttpException extends \Symfony\Component\HttpKernel\Exception\BadRequestHttpException implements \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\Cache\CacheableDependencyTrait

Expanded class hierarchy of CacheableBadRequestHttpException

8 files declare their use of CacheableBadRequestHttpException
EntityCondition.php in core/modules/jsonapi/src/Query/EntityCondition.php
EntityResource.php in core/modules/jsonapi/src/Controller/EntityResource.php
FieldResolver.php in core/modules/jsonapi/src/Context/FieldResolver.php
JsonApiRequestValidator.php in core/modules/jsonapi/src/EventSubscriber/JsonApiRequestValidator.php
OffsetPage.php in core/modules/jsonapi/src/Query/OffsetPage.php

... See full list

File

core/lib/Drupal/Core/Http/Exception/CacheableBadRequestHttpException.php, line 12

Namespace

Drupal\Core\Http\Exception
View source
class CacheableBadRequestHttpException extends BadRequestHttpException implements CacheableDependencyInterface {
    use CacheableDependencyTrait;
    
    /**
     * {@inheritdoc}
     */
    public function __construct(CacheableDependencyInterface $cacheability, $message = '', ?\Exception $previous = NULL, $code = 0) {
        $this->setCacheability($cacheability);
        parent::__construct($message, $previous, $code);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
CacheableBadRequestHttpException::__construct public function Overrides BadRequestHttpException::__construct
CacheableDependencyTrait::$cacheContexts protected property Cache contexts.
CacheableDependencyTrait::$cacheMaxAge protected property Cache max-age.
CacheableDependencyTrait::$cacheTags protected property Cache tags.
CacheableDependencyTrait::getCacheContexts public function 4
CacheableDependencyTrait::getCacheMaxAge public function 4
CacheableDependencyTrait::getCacheTags public function 4
CacheableDependencyTrait::setCacheability protected function Sets cacheability; useful for value object constructors.
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