class ConnectException in Lockr 7.3
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
4 files declare their use of ConnectException
- CurlFactory.php in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlFactory.php - lockr.admin.inc in ./
lockr.admin.inc - Form callbacks for Lockr register form.
- MiddlewareFactory.php in vendor/
lockr/ lockr/ src/ Guzzle/ MiddlewareFactory.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 | Get a short summary of the response | |
RequestException:: |
private static | function | Obfuscates URI if there is an username and a password present | |
RequestException:: |
public static | function | Wrap non-RequestExceptions with a RequestException |