public function RequestException::__construct in Lockr 7.3
2 calls to RequestException::__construct()
- BadResponseException::__construct in vendor/
guzzlehttp/ guzzle/ src/ Exception/ BadResponseException.php - ConnectException::__construct in vendor/
guzzlehttp/ guzzle/ src/ Exception/ ConnectException.php
2 methods override RequestException::__construct()
- BadResponseException::__construct in vendor/
guzzlehttp/ guzzle/ src/ Exception/ BadResponseException.php - ConnectException::__construct in vendor/
guzzlehttp/ guzzle/ src/ Exception/ ConnectException.php
File
- vendor/
guzzlehttp/ guzzle/ src/ Exception/ RequestException.php, line 23
Class
- RequestException
- HTTP Request exception
Namespace
GuzzleHttp\ExceptionCode
public function __construct($message, RequestInterface $request, ResponseInterface $response = null, \Exception $previous = null, array $handlerContext = []) {
// Set the code of the exception if the response is set and not future.
$code = $response && !$response instanceof PromiseInterface ? $response
->getStatusCode() : 0;
parent::__construct($message, $code, $previous);
$this->request = $request;
$this->response = $response;
$this->handlerContext = $handlerContext;
}