\GuzzleHttp\ExceptionClientException

Exception when a client error is encountered (4xx codes)

Summary

Methods
Properties
Constants
__construct()
hasResponse()
getResponse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\GuzzleHttp\Exception\string  $message, \Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response, \Throwable  $previous = null, array  $handlerContext = array()) 

Parameters

\GuzzleHttp\Exception\string $message
\Psr\Http\Message\RequestInterface $request
\Psr\Http\Message\ResponseInterface $response
\Throwable $previous
array $handlerContext

hasResponse()

hasResponse() 

Current exception and the ones that extend it will always have a response.

getResponse()

getResponse() 

This function narrows the return type from the parent class and does not allow it to be nullable.