RequestException
extends Exception
in package
implements
RequestExceptionInterface
HTTP client request exception class - thrown by Client::sendRequest() for pre-dispatch validation failures (e.g. no request URI to send)
Tags
Table of Contents
Interfaces
- RequestExceptionInterface
Properties
- $request : RequestInterface
- The request that failed to dispatch
Methods
- __construct() : mixed
- Constructor
- getRequest() : RequestInterface
- Get the request that failed to dispatch
Properties
$request
The request that failed to dispatch
protected
RequestInterface
$request
Methods
__construct()
Constructor
public
__construct(string $message, RequestInterface $request[, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string
- $request : RequestInterface
- $code : int = 0
- $previous : Throwable|null = null
getRequest()
Get the request that failed to dispatch
public
getRequest() : RequestInterface