class BadRequestException extends Exception

A BadRequestException indicates that there was a problem with the request.

Methods

__construct(RequestException $previous, string $message = '')

Exception constructor.

from Exception
serialize()

No description

from Exception
unserialize($serialized)

No description

from Exception
RequestInterface
getRequest()

Get the request that caused the exception.

from Exception
ResponseInterface|null
getResponse()

Get the associated response.

from Exception
bool
hasResponse()

Check if a response was received.

from Exception
string|null
getRequestId()

No description

from Exception

Details

in Exception at line 47
__construct(RequestException $previous, string $message = '')

Exception constructor.

Parameters

RequestException $previous
string $message

in Exception at line 64
serialize()

in Exception at line 77
unserialize($serialized)

Parameters

$serialized

in Exception at line 113
RequestInterface getRequest()

Get the request that caused the exception.

Return Value

RequestInterface

in Exception at line 123
ResponseInterface|null getResponse()

Get the associated response.

Return Value

ResponseInterface|null

in Exception at line 133
bool hasResponse()

Check if a response was received.

Return Value

bool

in Exception at line 141
string|null getRequestId()

Return Value

string|null