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.
Example: the target host name can not be resolved or the connection failed.
        
    Namespace: Cake\Http\Client\Exception
    
    
    
      
  
      Property Summary
- 
        $request protectedPsr\Http\Message\RequestInterface
Method Summary
- 
          __construct() publicConstructor. 
- 
          getRequest() publicReturns the request. 
Method Detail
__construct() ¶ public
__construct(string $message, Psr\Http\Message\RequestInterface $request, Throwable|null $previous = null)Constructor.
Parameters
- 
                string$message
- Exeception message. 
- 
                Psr\Http\Message\RequestInterface$request
- Request instance. 
- 
                Throwable|null$previous optional
- Previous Exception 
getRequest() ¶ public
getRequest(): Psr\Http\Message\RequestInterfaceReturns the request.
The request object MAY be a different object from the one passed to ClientInterface::sendRequest()
Returns
Psr\Http\Message\RequestInterface