BadResponseException.php
3 years ago
ClientException.php
3 years ago
ConnectException.php
3 years ago
GuzzleException.php
3 years ago
InvalidArgumentException.php
3 years ago
RequestException.php
3 years ago
SeekException.php
3 years ago
ServerException.php
3 years ago
TooManyRedirectsException.php
3 years ago
TransferException.php
3 years ago
BadResponseException.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPMailSMTP\Vendor\GuzzleHttp\Exception; |
| 4 | |
| 5 | use WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface; |
| 6 | use WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface; |
| 7 | /** |
| 8 | * Exception when an HTTP error occurs (4xx or 5xx error) |
| 9 | */ |
| 10 | class BadResponseException extends \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException |
| 11 | { |
| 12 | public function __construct($message, \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response = null, \Exception $previous = null, array $handlerContext = []) |
| 13 | { |
| 14 | if (null === $response) { |
| 15 | @\trigger_error('Instantiating the ' . __CLASS__ . ' class without a Response is deprecated since version 6.3 and will be removed in 7.0.', \E_USER_DEPRECATED); |
| 16 | } |
| 17 | parent::__construct($message, $request, $response, $previous, $handlerContext); |
| 18 | } |
| 19 | } |
| 20 |