function CacheableHttpException::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php \Drupal\Core\Http\Exception\CacheableHttpException::__construct()
  2. 10 core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php \Drupal\Core\Http\Exception\CacheableHttpException::__construct()
  3. 11.x 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 = '', \Exception $previous = NULL, array $headers = [], $code = 0) {
    $this->setCacheability($cacheability);
    parent::__construct($statusCode, $message, $previous, $headers, $code);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.