InvalidResponseException
extends Exception
in package
InvalidResponseException represents an exception caused by a non-successful server response status code.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- getName() : string
Properties
$response
public
Response
$response
HTTP response instance.
Tags
Methods
__construct()
Constructor.
public
__construct(Response $response[, string $message = null ][, int $code = 0 ][, Exception $previous = null ]) : mixed
Parameters
- $response : Response
-
response body
- $message : string = null
-
error message
- $code : int = 0
-
error code
- $previous : Exception = null
-
The previous exception used for the exception chaining.
getName()
public
getName() : string
Return values
string —the user-friendly name of this exception