Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceUnavailableHttpException.php

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\Exception

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal