yii\authclient\InvalidResponseException - Yii2 类参考手册

Class yii\authclient\InvalidResponseException

Inheritanceyii\authclient\InvalidResponseException » yii\base\Exception » Exception
Available since version2.0

InvalidResponseException represents an exception caused by invalid remote server response.

Public Properties

隐藏继承的属性 Hide inherited properties

属性Property类型 Type简介 Description定义在 Defined By
$response yii\httpclient\Response HTTP response instance. yii\authclient\InvalidResponseException

Public Methods

隐藏继承的方法 Hide inherited methods

方法 Method简介 Description定义在 Defined By
__construct() Constructor. yii\authclient\InvalidResponseException
getName() yii\base\Exception

属性详情 Property Details

$response public property (available since version 2.1)

HTTP response instance.

方法详情 Method Details

__construct() public method


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.