source: externals/php/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php@ 7271978

Last change on this file since 7271978 was 01a620f, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago

Removed submodules for php externals and use composer to provide them and versioned them afterwards

  • Property mode set to 100644
File size: 726 bytes
Line 
1<?php
2namespace GuzzleHttp\Exception;
3
4use 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 */
11class 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}
Note: See TracBrowser for help on using the repository browser.