PluginProbe
StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more / 2.5.6
StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more v2.5.6
3.7.2 3.7.1 3.7.0 3.6.0 3.6.1 3.5.2 trunk 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6.0 2.6.1 All 73 releases
stockpack / vendor / guzzlehttp / guzzle / src / Exception / ConnectException.php

ConnectException.php in StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more 2.5.6, at vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php

38 lines 726 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace GuzzleHttp\Exception;
3
4 use Psr\Http\Message\RequestInterface;
5
6 /**
7 * Exception thrown when a connection cannot be established.
8 *
9 * Note that no response is present for a ConnectException
10 */
11 class ConnectException extends RequestException
12 {
13 public function __construct(
14 $message,
15 RequestInterface $request,
16 \Exception $previous = null,
17 array $handlerContext = []
18 ) {
19 parent::__construct($message, $request, null, $previous, $handlerContext);
20 }
21
22 /**
23 * @return null
24 */
25 public function getResponse()
26 {
27 return null;
28 }
29
30 /**
31 * @return bool
32 */
33 public function hasResponse()
34 {
35 return false;
36 }
37 }
38