PluginProbe ʕ •ᴥ•ʔ
Check & Log Email – Easy Email Testing & Mail logging / 2.0.15
Check & Log Email – Easy Email Testing & Mail logging v2.0.15
2.0.15 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 2.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.13.1 2.0.13.2 2.0.14 2.0.2 2.0.3 2.0.4 2.0.5 2.0.5.1 2.0.6 2.0.7 2.0.8 2.0.9 trunk 0.5.7 0.6.0 0.6.1 0.6.2 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.12.1 1.0.13 1.0.13.1 1.0.2 1.0.3
check-email / vendor / guzzlehttp / guzzle / src / Exception / BadResponseException.php
check-email / vendor / guzzlehttp / guzzle / src / Exception Last commit date
BadResponseException.php 1 week ago ClientException.php 1 week ago ConnectException.php 1 week ago GuzzleException.php 1 week ago InvalidArgumentException.php 1 week ago RequestException.php 1 week ago ServerException.php 1 week ago TooManyRedirectsException.php 1 week ago TransferException.php 1 week ago
BadResponseException.php
40 lines
1 <?php
2
3 namespace GuzzleHttp\Exception;
4
5 use Psr\Http\Message\RequestInterface;
6 use Psr\Http\Message\ResponseInterface;
7
8 /**
9 * Exception when an HTTP error occurs (4xx or 5xx error)
10 */
11 class BadResponseException extends RequestException
12 {
13 public function __construct(
14 string $message,
15 RequestInterface $request,
16 ResponseInterface $response,
17 ?\Throwable $previous = null,
18 array $handlerContext = []
19 ) {
20 parent::__construct($message, $request, $response, $previous, $handlerContext);
21 }
22
23 /**
24 * Current exception and the ones that extend it will always have a response.
25 */
26 public function hasResponse(): bool
27 {
28 return true;
29 }
30
31 /**
32 * This function narrows the return type from the parent class and does not allow it to be nullable.
33 */
34 public function getResponse(): ResponseInterface
35 {
36 /** @var ResponseInterface */
37 return parent::getResponse();
38 }
39 }
40