ClientErrorResponseException
extends InvalidResponseException
in package
ClientErrorResponseException represents an exception caused by a "client error" server response status code (4xx).
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