RequestException
extends TransferException
in package
implements
RequestExceptionInterface
uses
RequestAwareTrait
Exception for when a request failed, providing access to the failed request.
This could be due to an invalid request, or one of the extending exceptions for network errors or HTTP error responses.
Tags
Table of Contents
Interfaces
- RequestExceptionInterface
- Exception for when a request failed.
Properties
Methods
- __construct() : mixed
- getRequest() : RequestInterface
- {@inheritdoc}
- setRequest() : mixed
Properties
$request
private
RequestInterface
$request
Methods
__construct()
public
__construct(string $message, RequestInterface $request[, Exception $previous = null ]) : mixed
Parameters
- $message : string
- $request : RequestInterface
- $previous : Exception = null
getRequest()
{@inheritdoc}
public
getRequest() : RequestInterface
Return values
RequestInterfacesetRequest()
private
setRequest(RequestInterface $request) : mixed
Parameters
- $request : RequestInterface