class CacheableHttpException
A cacheable HttpException.
Hierarchy
- class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- class \Drupal\Core\Http\Exception\CacheableHttpException extends \Symfony\Component\HttpKernel\Exception\HttpException implements \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\Cache\CacheableDependencyTrait
Expanded class hierarchy of CacheableHttpException
1 file declares its use of CacheableHttpException
- ResourceVersionRouteEnhancer.php in core/
modules/ jsonapi/ src/ Revisions/ ResourceVersionRouteEnhancer.php
File
-
core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableHttpException.php, line 12
Namespace
Drupal\Core\Http\ExceptionView source
class CacheableHttpException extends HttpException implements CacheableDependencyInterface {
use CacheableDependencyTrait;
/**
* {@inheritdoc}
*/
public function __construct(CacheableDependencyInterface $cacheability, $statusCode = 0, $message = '', ?\Exception $previous = NULL, array $headers = [], $code = 0) {
$this->setCacheability($cacheability);
parent::__construct($statusCode, $message, $previous, $headers, $code);
}
}