Skip to content

ForbiddenException


Methods

__construct

public __construct(string $message = 'The server understood the request, but is refusing to fulfill it. ' . 'Authorization will not help and the request should not be repeated.', int $code = 403, ?\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