2 namespace GuzzleHttp\Exception;
4 use Psr\Http\Message\RequestInterface;
7 * Exception thrown when a connection cannot be established.
9 * Note that no response is present for a ConnectException
11 class ConnectException extends RequestException
13 public function __construct(
15 RequestInterface $request,
16 \Exception $previous = null,
17 array $handlerContext = []
19 parent::__construct($message, $request, null, $previous, $handlerContext);
25 public function getResponse()
33 public function hasResponse()