Class Yiisoft\Yii\AuthClient\Exception\InvalidResponseException
| Inheritance | Yiisoft\Yii\AuthClient\Exception\InvalidResponseException » RuntimeException |
|---|
InvalidResponseException represents an exception caused by invalid remote server response.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | Yiisoft\Yii\AuthClient\Exception\InvalidResponseException |
Method Details
Constructor.
| public mixed __construct ( \Psr\Http\Message\ResponseInterface $response, string $message, integer $code = 0, Throwable $previous = null ) | ||
| $response | \Psr\Http\Message\ResponseInterface |
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);
}
Signup or Login in order to comment.