File "BadResponseException.php"
Full Path: /home/amervokv/ecomlive.net/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php
File size: 1.1 KB
MIME-type: text/x-php
Charset: utf-8
<?php
namespace YoastSEO_Vendor\GuzzleHttp\Exception;
use YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
use YoastSEO_Vendor\Psr\Http\Message\ResponseInterface;
/**
* Exception when an HTTP error occurs (4xx or 5xx error)
*/
class BadResponseException extends \YoastSEO_Vendor\GuzzleHttp\Exception\RequestException
{
public function __construct(string $message, \YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response, \Throwable $previous = null, array $handlerContext = [])
{
parent::__construct($message, $request, $response, $previous, $handlerContext);
}
/**
* Current exception and the ones that extend it will always have a response.
*/
public function hasResponse() : bool
{
return \true;
}
/**
* This function narrows the return type from the parent class and does not allow it to be nullable.
*/
public function getResponse() : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
{
/** @var ResponseInterface */
return parent::getResponse();
}
}