Skip to content

ServerErrorException


Methods

__construct

public __construct(string $message = 'The server encountered an unexpected condition ' . 'which prevented it from fulfilling the request.', int $code = 500, ?\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