Skip to content

ServiceUnavailableException


Methods

__construct

public __construct(string $message = 'The server is currently unable to handle the request due to a ' . 'temporary overloading or maintenance of the server.', int $code = 503, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$message string
$code int
$previous ?\Throwable

Inherited methods

__construct

public __construct(?string $message = '', int $code = 0, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$message ?string
$code int
$previous ?\Throwable

Throws:


__toString

public __toString(): string