Open Journal Systems
3.3.0
|
Public Member Functions | |
getResponse () | |
setResponse (Response $response) | |
![]() | |
getRequest () | |
setRequest (RequestInterface $request) | |
Static Public Member Functions | |
static | factory (RequestInterface $request, Response $response) |
Additional Inherited Members | |
![]() | |
$request | |
Http request exception thrown when a bad response is received
Definition at line 11 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php.
|
static |
Factory method to create a new response exception based on the response code.
RequestInterface | $request | Request |
Response | $response | Response received |
Definition at line 27 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php.
References Guzzle\Http\Exception\RequestException\$request.
Referenced by Guzzle\Http\Message\Request\onRequestError(), Guzzle\Tests\Http\Exception\ExceptionTest\testCreatesClientErrorExceptionOnClientError(), Guzzle\Tests\Http\Exception\ExceptionTest\testCreatesGenericErrorExceptionOnError(), and Guzzle\Tests\Http\Exception\ExceptionTest\testCreatesServerErrorExceptionOnServerError().
Guzzle\Http\Exception\BadResponseException::getResponse | ( | ) |
Get the response that caused the exception
Definition at line 68 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php.
Referenced by Guzzle\Plugin\Cache\DefaultRevalidation\handleBadResponse(), Guzzle\Http\RedirectPlugin\sendRedirectRequest(), Guzzle\Tests\Plugin\Cache\DefaultRevalidationTest\testHandles404RevalidationResponses(), and Guzzle\Tests\Http\Message\RequestTest\testRequestThrowsExceptionOnBadResponse().
Guzzle\Http\Exception\BadResponseException::setResponse | ( | Response | $response | ) |
Set the response that caused the exception
Response | $response | Response to set |
Definition at line 58 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php.