Class yii\authclient\ClientErrorResponseException
| Inheritance | yii\authclient\ClientErrorResponseException » yii\authclient\InvalidResponseException » yii\base\Exception » Exception |
|---|---|
| Available since version | 2.2.15 |
| Source Code | https://github.com/yiisoft/yii2-authclient/blob/master/ClientErrorResponseException.php |
ClientErrorResponseException represents an exception caused by a "client error" server response status code (4xx).
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $response | yii\httpclient\Response | HTTP response instance. | yii\authclient\InvalidResponseException |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | yii\authclient\InvalidResponseException |
| getName() | yii\base\Exception |
Method Details
Defined in: yii\authclient\InvalidResponseException::__construct()
Constructor.
| public void __construct ( $response, $message = null, $code = 0, Exception $previous = null ) | ||
| $response | yii\httpclient\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);
}
Defined in: yii\base\Exception::getName()
| public string getName ( ) | ||
| return | string |
The user-friendly name of this exception |
|---|---|---|
public function getName()
{
return 'Exception';
}