Class yii\authclient\ClientErrorResponseException
| Inheritance | yii\ |
|---|---|
| Available since extension's version | 2.2.15 |
| Source Code | https://github.com/yiisoft/yii2-authclient/blob/master/src/ClientErrorResponseException.php |
ClientErrorResponseException represents an exception caused by a "client error" server response status code (4xx).
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $response | \ |
HTTP response instance. | yii\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | yii\ |
Method Details
Defined in:
yii\
Constructor.
| public mixed __construct ( \ | ||
| $response | \ |
Response body |
| $message | string |
Error message |
| $code | integer |
Error code |
| $previous | Exception |
The previous exception used for the exception chaining. |
public function __construct($response, $message = null, $code = 0, \Exception $previous = null)
{
$this->response = $response;
parent::__construct($message, $code, $previous);
}