You are here

class BadResponseException in Lockr 7.3

Exception when an HTTP error occurs (4xx or 5xx error)

Hierarchy

Expanded class hierarchy of BadResponseException

1 file declares its use of BadResponseException
RedirectMiddleware.php in vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php

File

vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php, line 10

Namespace

GuzzleHttp\Exception
View source
class BadResponseException extends RequestException {
  public function __construct($message, RequestInterface $request, ResponseInterface $response = null, \Exception $previous = null, array $handlerContext = []) {
    if (null === $response) {
      @trigger_error('Instantiating the ' . __CLASS__ . ' class without a Response is deprecated since version 6.3 and will be removed in 7.0.', E_USER_DEPRECATED);
    }
    parent::__construct($message, $request, $response, $previous, $handlerContext);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BadResponseException::__construct public function Overrides RequestException::__construct
RequestException::$handlerContext private property @var array
RequestException::$request private property @var RequestInterface
RequestException::$response private property @var ResponseInterface
RequestException::create public static function Factory method to create a new exception with a normalized error message
RequestException::getHandlerContext public function Get contextual information about the error from the underlying handler.
RequestException::getRequest public function Get the request that caused the exception
RequestException::getResponse public function Get the associated response 1
RequestException::getResponseBodySummary public static function Get a short summary of the response
RequestException::hasResponse public function Check if a response was received 1
RequestException::obfuscateUri private static function Obfuscates URI if there is an username and a password present
RequestException::wrapException public static function Wrap non-RequestExceptions with a RequestException