Open Journal Systems  3.3.0
vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php
1 <?php
3 
6 
11 {
12  public function __construct(
13  $message,
14  RequestInterface $request,
15  ResponseInterface $response = null,
16  \Exception $previous = null,
17  array $handlerContext = []
18  ) {
19  if (null === $response) {
20  @trigger_error(
21  'Instantiating the ' . __CLASS__ . ' class without a Response is deprecated since version 6.3 and will be removed in 7.0.',
22  E_USER_DEPRECATED
23  );
24  }
25  parent::__construct($message, $request, $response, $previous, $handlerContext);
26  }
27 }
GuzzleHttp\Exception\RequestException
Definition: vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
Psr\Http\Message\RequestInterface
Definition: vendor/psr/http-message/src/RequestInterface.php:24
GuzzleHttp\Exception\BadResponseException
Definition: vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
GuzzleHttp\Exception
Definition: vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:2
Psr\Http\Message\ResponseInterface
Definition: vendor/psr/http-message/src/ResponseInterface.php:20
GuzzleHttp\Exception\BadResponseException\__construct
__construct( $message, RequestInterface $request, ResponseInterface $response=null, \Exception $previous=null, array $handlerContext=[])
Definition: vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:12