HttpClientException
extends Exception
in package
REST API HTTP Client Exception class.
Table of Contents
- $request : Request
- Request.
- $response : Response
- Response.
- __construct() : mixed
- Initialize exception.
- getRequest() : Request
- Get request data.
- getResponse() : Response
- Get response data.
Properties
$request
Request.
private
Request
$request
$response
Response.
private
Response
$response
Methods
__construct()
Initialize exception.
public
__construct(string $message, int $code, Request $request, Response $response) : mixed
Parameters
- $message : string
-
Error message.
- $code : int
-
Error code.
- $request : Request
-
Request data.
- $response : Response
-
Response data.
Return values
mixed —getRequest()
Get request data.
public
getRequest() : Request
Return values
Request —getResponse()
Get response data.
public
getResponse() : Response