Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ( $message, RequestInterface $request, ResponseInterface $response=null, \Exception $previous=null, array $handlerContext=[]) | |
getHandlerContext () | |
getRequest () | |
getResponse () | |
hasResponse () | |
Static Public Member Functions | |
static | create (RequestInterface $request, ResponseInterface $response=null, \Exception $previous=null, array $ctx=[]) |
static | getResponseBodySummary (ResponseInterface $response) |
static | wrapException (RequestInterface $request, \Exception $e) |
HTTP Request exception
Definition at line 12 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
GuzzleHttp\Exception\RequestException::__construct | ( | $message, | |
RequestInterface | $request, | ||
ResponseInterface | $response = null , |
||
\Exception | $previous = null , |
||
array | $handlerContext = [] |
||
) |
Reimplemented in GuzzleHttp\Exception\BadResponseException.
Definition at line 32 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
|
static |
Factory method to create a new exception with a normalized error message
RequestInterface | $request | Request |
ResponseInterface | $response | Response received |
\Exception | $previous | Previous exception |
array | $ctx | Optional handler context. |
Definition at line 74 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
References Psr\Http\Message\RequestInterface\getMethod(), and Psr\Http\Message\RequestInterface\getUri().
GuzzleHttp\Exception\RequestException::getHandlerContext | ( | ) |
Get contextual information about the error from the underlying handler.
The contents of this array will vary depending on which handler you are using. It may also be just an empty array. Relying on this data will couple you to a specific handler, but can give more debug information when needed.
Definition at line 197 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
GuzzleHttp\Exception\RequestException::getRequest | ( | ) |
Get the request that caused the exception
Definition at line 162 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
GuzzleHttp\Exception\RequestException::getResponse | ( | ) |
Get the associated response
Reimplemented in GuzzleHttp\Exception\ConnectException.
Definition at line 172 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
Referenced by GuzzleHttp\Middleware\log().
|
static |
Get a short summary of the response
Will return null
if the response is not printable.
ResponseInterface | $response |
Definition at line 134 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
GuzzleHttp\Exception\RequestException::hasResponse | ( | ) |
Check if a response was received
Reimplemented in GuzzleHttp\Exception\ConnectException.
Definition at line 182 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
|
static |
Wrap non-RequestExceptions with a RequestException
RequestInterface | $request | |
\Exception | $e |
Definition at line 57 of file vendor/guzzlehttp/guzzle/src/Exception/RequestException.php.
Referenced by GuzzleHttp\Handler\StreamHandler\__invoke().