public function ServiceUnavailableHttpException::__construct

Constructor.

Parameters

int|string $retryAfter The number of seconds or HTTP-date after which the request may be retried:

string $message The internal exception message:

\Exception $previous The previous exception:

integer $code The internal exception code:

Overrides HttpException::__construct

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/ServiceUnavailableHttpException.php, line 29

Class

ServiceUnavailableHttpException
ServiceUnavailableHttpException.

Namespace

Symfony\Component\HttpKernel\Exception

Code

public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0) {
  $headers = array();
  if ($retryAfter) {
    $headers = array(
      'Retry-After' => $retryAfter,
    );
  }
  parent::__construct(503, $message, $previous, $headers, $code);
}