function CacheableTooManyRequestsHttpException::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php \Drupal\Core\Http\Exception\CacheableTooManyRequestsHttpException::__construct()
  2. 8.9.x core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php \Drupal\Core\Http\Exception\CacheableTooManyRequestsHttpException::__construct()
  3. 11.x core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php \Drupal\Core\Http\Exception\CacheableTooManyRequestsHttpException::__construct()

File

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

Class

CacheableTooManyRequestsHttpException
A cacheable TooManyRequestsHttpException.

Namespace

Drupal\Core\Http\Exception

Code

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

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