You are here

class ConnectException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php \GuzzleHttp\Exception\ConnectException

Exception thrown when a connection cannot be established.

Note that no response is present for a ConnectException

Hierarchy

Expanded class hierarchy of ConnectException

3 files declare their use of ConnectException
BrowserBase.php in vendor/jcalderonzumba/gastonjs/src/Browser/BrowserBase.php
CurlFactory.php in vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
StreamHandler.php in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

File

vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php, line 11

Namespace

GuzzleHttp\Exception
View source
class ConnectException extends RequestException {
  public function __construct($message, RequestInterface $request, \Exception $previous = null, array $handlerContext = []) {
    parent::__construct($message, $request, null, $previous, $handlerContext);
  }

  /**
   * @return null
   */
  public function getResponse() {
    return null;
  }

  /**
   * @return bool
   */
  public function hasResponse() {
    return false;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConnectException::getResponse public function Overrides RequestException::getResponse
ConnectException::hasResponse public function Overrides RequestException::hasResponse
ConnectException::__construct public function Overrides RequestException::__construct
RequestException::$handlerContext private property @var array
RequestException::$request private property @var RequestInterface
RequestException::$response private property @var ResponseInterface
RequestException::create public static function Factory method to create a new exception with a normalized error message
RequestException::getHandlerContext public function Get contextual information about the error from the underlying handler.
RequestException::getRequest public function Get the request that caused the exception
RequestException::wrapException public static function Wrap non-RequestExceptions with a RequestException