You are here

public function CacheablePreconditionFailedHttpException::__construct in Drupal 10

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

File

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

Class

CacheablePreconditionFailedHttpException
A cacheable PreconditionFailedHttpException.

Namespace

Drupal\Core\Http\Exception

Code

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