class ConnectException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
- class \GuzzleHttp\Exception\TransferException extends \GuzzleHttp\Exception\RuntimeException implements GuzzleException
- class \GuzzleHttp\Exception\RequestException
- class \GuzzleHttp\Exception\ConnectException
- class \GuzzleHttp\Exception\RequestException
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\ExceptionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConnectException:: |
public | function |
Overrides RequestException:: |
|
ConnectException:: |
public | function |
Overrides RequestException:: |
|
ConnectException:: |
public | function |
Overrides RequestException:: |
|
RequestException:: |
private | property | @var array | |
RequestException:: |
private | property | @var RequestInterface | |
RequestException:: |
private | property | @var ResponseInterface | |
RequestException:: |
public static | function | Factory method to create a new exception with a normalized error message | |
RequestException:: |
public | function | Get contextual information about the error from the underlying handler. | |
RequestException:: |
public | function | Get the request that caused the exception | |
RequestException:: |
public static | function | Wrap non-RequestExceptions with a RequestException |