ClientHttpException
extends Exception
in package
implements
HttpException
This exception represents a HTTP error coming from the Client.
By default the Client will not emit these, this has to be explicitly enabled with the setThrowExceptions method.
Tags
Interfaces, Classes and Traits
- HttpException
- An exception representing a HTTP error.
Table of Contents
- $response : ResponseInterface
- Response object.
- __construct() : mixed
- Constructor.
- getHttpStatus() : string|null
- The http status code for the error.
- getResponse() : ResponseInterface
- Returns the full response object.
Properties
$response
Response object.
protected
ResponseInterface
$response
Methods
__construct()
Constructor.
public
__construct(ResponseInterface $response) : mixed
Parameters
- $response : ResponseInterface
Return values
mixed —getHttpStatus()
The http status code for the error.
public
getHttpStatus() : string|null
Return values
string|null —getResponse()
Returns the full response object.
public
getResponse() : ResponseInterface