PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / guzzlehttp / guzzle / src / Exception / ConnectException.php
ameliabooking / vendor / guzzlehttp / guzzle / src / Exception Last commit date
BadResponseException.php 7 months ago ClientException.php 7 months ago ConnectException.php 7 months ago GuzzleException.php 7 months ago InvalidArgumentException.php 7 months ago RequestException.php 7 months ago ServerException.php 7 months ago TooManyRedirectsException.php 7 months ago TransferException.php 7 months ago
ConnectException.php
57 lines
1 <?php
2
3 namespace AmeliaVendor\GuzzleHttp\Exception;
4
5 use AmeliaVendor\Psr\Http\Client\NetworkExceptionInterface;
6 use AmeliaVendor\Psr\Http\Message\RequestInterface;
7
8 /**
9 * Exception thrown when a connection cannot be established.
10 *
11 * Note that no response is present for a ConnectException
12 */
13 class ConnectException extends TransferException implements NetworkExceptionInterface
14 {
15 /**
16 * @var RequestInterface
17 */
18 private $request;
19
20 /**
21 * @var array
22 */
23 private $handlerContext;
24
25 public function __construct(
26 string $message,
27 RequestInterface $request,
28 ?\Throwable $previous = null,
29 array $handlerContext = []
30 ) {
31 parent::__construct($message, 0, $previous);
32 $this->request = $request;
33 $this->handlerContext = $handlerContext;
34 }
35
36 /**
37 * Get the request that caused the exception
38 */
39 public function getRequest(): RequestInterface
40 {
41 return $this->request;
42 }
43
44 /**
45 * Get contextual information about the error from the underlying handler.
46 *
47 * The contents of this array will vary depending on which handler you are
48 * using. It may also be just an empty array. Relying on this data will
49 * couple you to a specific handler, but can give more debug information
50 * when needed.
51 */
52 public function getHandlerContext(): array
53 {
54 return $this->handlerContext;
55 }
56 }
57