Mercurial > hg > isophonics-drupal-site
annotate vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 namespace GuzzleHttp\Exception; |
Chris@0 | 3 |
Chris@0 | 4 use Psr\Http\Message\RequestInterface; |
Chris@0 | 5 |
Chris@0 | 6 /** |
Chris@0 | 7 * Exception thrown when a connection cannot be established. |
Chris@0 | 8 * |
Chris@0 | 9 * Note that no response is present for a ConnectException |
Chris@0 | 10 */ |
Chris@0 | 11 class ConnectException extends RequestException |
Chris@0 | 12 { |
Chris@0 | 13 public function __construct( |
Chris@0 | 14 $message, |
Chris@0 | 15 RequestInterface $request, |
Chris@0 | 16 \Exception $previous = null, |
Chris@0 | 17 array $handlerContext = [] |
Chris@0 | 18 ) { |
Chris@0 | 19 parent::__construct($message, $request, null, $previous, $handlerContext); |
Chris@0 | 20 } |
Chris@0 | 21 |
Chris@0 | 22 /** |
Chris@0 | 23 * @return null |
Chris@0 | 24 */ |
Chris@0 | 25 public function getResponse() |
Chris@0 | 26 { |
Chris@0 | 27 return null; |
Chris@0 | 28 } |
Chris@0 | 29 |
Chris@0 | 30 /** |
Chris@0 | 31 * @return bool |
Chris@0 | 32 */ |
Chris@0 | 33 public function hasResponse() |
Chris@0 | 34 { |
Chris@0 | 35 return false; |
Chris@0 | 36 } |
Chris@0 | 37 } |