function ServiceUnavailableHttpException::__construct
Parameters
int|string|null $retryAfter The number of seconds or HTTP-date after which the request may be retried:
Overrides HttpException::__construct
2 calls to ServiceUnavailableHttpException::__construct()
- CacheableServiceUnavailableHttpException::__construct in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableServiceUnavailableHttpException.php - CacheableServiceUnavailableHttpException::__construct in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableServiceUnavailableHttpException.php
1 method overrides ServiceUnavailableHttpException::__construct()
- CacheableServiceUnavailableHttpException::__construct in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableServiceUnavailableHttpException.php
File
-
vendor/
symfony/ http-kernel/ Exception/ ServiceUnavailableHttpException.php, line 22
Class
- ServiceUnavailableHttpException
- @author Ben Ramsey <ben@benramsey.com>
Namespace
Symfony\Component\HttpKernel\ExceptionCode
public function __construct(int|string|null $retryAfter = null, string $message = '', ?\Throwable $previous = null, int $code = 0, array $headers = []) {
if ($retryAfter) {
$headers['Retry-After'] = $retryAfter;
}
parent::__construct(503, $message, $previous, $headers, $code);
}