Documentation

MaintenanceModeException extends ServiceUnavailableHttpException
in package

HttpException.

Table of Contents

$retryAfter  : int
The number of seconds to wait before retrying.
$wentDownAt  : Carbon
When the application was put in maintenance mode.
$willBeAvailableAt  : Carbon
When the application should next be available.
$headers  : mixed
$statusCode  : mixed
__construct()  : void
Create a new exception instance.
getHeaders()  : array<string|int, mixed>
Returns response headers.
getStatusCode()  : int
Returns the status code.
setHeaders()  : mixed
Set response headers.

Properties

Methods

__construct()

Create a new exception instance.

public __construct(int $time[, int $retryAfter = null ][, string $message = null ][, Exception $previous = null ], int $code) : void
Parameters
$time : int
$retryAfter : int = null
$message : string = null
$previous : Exception = null
$code : int
Return values
void

getHeaders()

Returns response headers.

public getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

Response headers

getStatusCode()

Returns the status code.

public getStatusCode() : int
Return values
int

An HTTP response status code

setHeaders()

Set response headers.

public setHeaders(array<string|int, mixed> $headers) : mixed
Parameters
$headers : array<string|int, mixed>

Response headers

Return values
mixed

Search results