Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BadResponseException.php

function BadResponseException::getResponse

This function narrows the return type from the parent class and does not allow it to be nullable.

Overrides RequestException::getResponse

File

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

Class

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

Namespace

GuzzleHttp\Exception

Code

public function getResponse() : ResponseInterface {
    
    /** @var ResponseInterface */
    return parent::getResponse();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal