Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct ( $message, RequestInterface $request, ResponseInterface $response, \Exception $previous=null) | |
getResponse () | |
![]() | |
__construct ($message, RequestInterface $request, \Exception $previous=null) | |
![]() | |
getRequest () | |
Static Public Member Functions | |
static | create (RequestInterface $request, ResponseInterface $response, \Exception $previous=null) |
Protected Attributes | |
$response | |
Additional Inherited Members | |
![]() | |
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.
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().