Final Class Yiisoft\Yii\AuthClient\Exception\InvalidResponseException
| Inheritance | Yiisoft\ |
|---|
InvalidResponseException represents an exception caused by invalid remote server response.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | Yiisoft\ |
| getResponse() | Yiisoft\ |
Method Details
Constructor.
| public mixed __construct ( \ | ||
| $response | \ |
HTTP response instance |
| $message | string |
Error message |
| $code | integer |
Error code |
| $previous | Throwable |
The previous exception used for the exception chaining. |
public function __construct(
private readonly ResponseInterface $response,
string $message,
$code = 0,
?Throwable $previous = null,
) {
parent::__construct($message, $code, $previous);
}
| public \ | ||
| return | \ |
HTTP response instance that caused this exception. |
|---|---|---|
public function getResponse(): ResponseInterface
{
return $this->response;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.