|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ( $message, RequestInterface $request, ResponseInterface $response, \Exception $previous=null) | |
| getResponse () | |
Public Member Functions inherited from Http\Client\Exception\RequestException | |
| __construct ($message, RequestInterface $request, \Exception $previous=null) | |
Public Member Functions inherited from Psr\Http\Client\RequestExceptionInterface | |
| getRequest () | |
Static Public Member Functions | |
| static | create (RequestInterface $request, ResponseInterface $response, \Exception $previous=null) |
Protected Attributes | |
| $response | |
Additional Inherited Members | |
Data Fields inherited from Http\Client\Exception | |
| trait | RequestAwareTrait |
Thrown when a response was received but the request itself failed.
In addition to the request, this exception always provides access to the response object.
Definition at line 15 of file vendor/php-http/httplug/src/Exception/HttpException.php.
| Http\Client\Exception\HttpException::__construct | ( | $message, | |
| RequestInterface | $request, | ||
| ResponseInterface | $response, | ||
| \Exception | $previous = null |
||
| ) |
| string | $message | |
| RequestInterface | $request | |
| ResponseInterface | $response | |
| \Exception | null | $previous |
Definition at line 31 of file vendor/php-http/httplug/src/Exception/HttpException.php.
References Http\Client\Exception\HttpException\$response.
|
static |
Factory method to create a new exception with a normalized error message.
Definition at line 56 of file vendor/php-http/httplug/src/Exception/HttpException.php.
References Http\Client\Exception\HttpException\$response, Psr\Http\Message\RequestInterface\getMethod(), and Psr\Http\Message\RequestInterface\getRequestTarget().
| Http\Client\Exception\HttpException::getResponse | ( | ) |
Returns the response.
Definition at line 48 of file vendor/php-http/httplug/src/Exception/HttpException.php.
References Http\Client\Exception\HttpException\$response.
|
protected |
Definition at line 23 of file vendor/php-http/httplug/src/Exception/HttpException.php.
Referenced by Http\Client\Exception\HttpException\__construct(), Http\Client\Exception\HttpException\create(), and Http\Client\Exception\HttpException\getResponse().