Class yii\authclient\InvalidResponseException
Inheritance | yii\authclient\InvalidResponseException » yii\base\Exception |
---|---|
Available since extension's version | 2.0 |
Source Code | https://github.com/yiisoft/yii2-authclient/blob/master/src/InvalidResponseException.php |
InvalidResponseException represents an exception caused by invalid remote server response.
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 |
Property Details
HTTP response instance.
Method Details
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);
}