Class yii\authclient\InvalidResponseException

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

InvalidResponseException represents an exception caused by invalid remote server response.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$response \yii\httpclient\Response HTTP response instance. yii\authclient\InvalidResponseException

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. yii\authclient\InvalidResponseException

Property Details

$response public property (available since version 2.1)

HTTP response instance.

public \yii\httpclient\Response $response null

Method Details

__construct() public method

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.