class NetworkException
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.
@author Márk Sági-Kazár <mark.sagikazar@gmail.com>
Hierarchy
- class \Http\Client\Exception\TransferException extends \Http\Client\Exception\RuntimeException implements \Http\Client\Exception
- class \Http\Client\Exception\NetworkException extends \Http\Client\Exception\TransferException implements \Psr\Http\Client\NetworkExceptionInterface uses \Http\Client\Exception\RequestAwareTrait
Expanded class hierarchy of NetworkException
File
-
vendor/
php-http/ httplug/ src/ Exception/ NetworkException.php, line 15
Namespace
Http\Client\ExceptionView source
class NetworkException extends TransferException implements PsrNetworkException {
use RequestAwareTrait;
/**
* @param string $message
*/
public function __construct($message, RequestInterface $request, ?\Exception $previous = null) {
$this->setRequest($request);
parent::__construct($message, 0, $previous);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
NetworkException::__construct | public | function | |
RequestAwareTrait::$request | private | property | |
RequestAwareTrait::getRequest | public | function | |
RequestAwareTrait::setRequest | private | function |