Skip to content

BadRequestException


Methods

__construct

public __construct(string $message = 'The request could not be understood by the server due to malformed syntax. ' . 'The client should not repeat the request without modifications.', int $code = 400, ?\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