NetworkException
extends ClientException
in package
implements
NetworkExceptionInterface
Implementation of PSR-18 NetworkExceptionInterface.
Table of Contents
Interfaces
- NetworkExceptionInterface
Properties
- $request : RequestInterface
Methods
- __construct() : mixed
- getRequest() : RequestInterface
- Returns the request.
Properties
$request
private
RequestInterface
$request
Methods
__construct()
public
__construct(string $message, int $code, RequestInterface $request[, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string
- $code : int
- $request : RequestInterface
- $previous : Throwable|null = null
getRequest()
Returns the request.
public
getRequest() : RequestInterface
The request object MAY be a different object from the one passed to ClientInterface::sendRequest()