You are here

public function CacheableHttpException::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php \Drupal\Core\Http\Exception\CacheableHttpException::__construct()

File

core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php, line 19

Class

CacheableHttpException
A cacheable HttpException.

Namespace

Drupal\Core\Http\Exception

Code

public function __construct(CacheableDependencyInterface $cacheability, $statusCode = 0, $message = NULL, \Exception $previous = NULL, array $headers = [], $code = 0) {
  $this
    ->setCacheability($cacheability);
  parent::__construct($statusCode, $message, $previous, $headers, $code);
}