public function ServiceUnavailableHttpException::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Exception/ServiceUnavailableHttpException.php \Symfony\Component\HttpKernel\Exception\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:
int $code The internal exception code:
Overrides HttpException::__construct
File
- vendor/
symfony/ http-kernel/ Exception/ ServiceUnavailableHttpException.php, line 29
Class
- ServiceUnavailableHttpException
- ServiceUnavailableHttpException.
Namespace
Symfony\Component\HttpKernel\ExceptionCode
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);
}