interface NetworkExceptionInterface
Thrown when the request cannot be completed because of network issues.
There is no response object as this exception is thrown when no response has been received.
Example: the target host name can not be resolved or the connection failed.
Hierarchy
- interface \Psr\Http\Client\ClientExceptionInterface extends \Psr\Http\Client\Throwable
- interface \Psr\Http\Client\NetworkExceptionInterface extends \Psr\Http\Client\ClientExceptionInterface
Expanded class hierarchy of NetworkExceptionInterface
All classes that implement NetworkExceptionInterface
3 files declare their use of NetworkExceptionInterface
- ConnectException.php in vendor/
guzzlehttp/ guzzle/ src/ Exception/ ConnectException.php - NetworkException.php in vendor/
php-http/ httplug/ src/ Exception/ NetworkException.php - PsrTransport.php in vendor/
open-telemetry/ sdk/ Common/ Export/ Http/ PsrTransport.php
File
-
vendor/
psr/ http-client/ src/ NetworkExceptionInterface.php, line 14
Namespace
Psr\Http\ClientView source
interface NetworkExceptionInterface extends ClientExceptionInterface {
/**
* Returns the request.
*
* The request object MAY be a different object from the one passed to ClientInterface::sendRequest()
*
* @return RequestInterface
*/
public function getRequest() : RequestInterface;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
NetworkExceptionInterface::getRequest | public | function | Returns the request. | 1 |