class NotFoundException extends Exception

A NotFoundException indicates that the desired resource could not be found on the server.

Methods

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

Exception constructor.

from Exception
serialize()

{@inheritdoc}

from Exception
unserialize($serialized)

{@inheritdoc}

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 53
__construct(RequestException $previous, string $message = '')

Exception constructor.

Parameters

RequestException $previous
string $message

in Exception at line 73
serialize()

{@inheritdoc}

in Exception at line 89
unserialize($serialized)

{@inheritdoc}

Parameters

$serialized

in Exception at line 133
RequestInterface getRequest()

Get the request that caused the exception.

Return Value

RequestInterface

in Exception at line 143
ResponseInterface|null getResponse()

Get the associated response.

Return Value

ResponseInterface|null

in Exception at line 153
bool hasResponse()

Check if a response was received.

Return Value

bool

in Exception at line 161
string|null getRequestId()

Return Value

string|null