class RequestException

Http request exception

Hierarchy

Expanded class hierarchy of RequestException

11 files declare their use of RequestException
DefaultFetcher.php in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/fetcher/DefaultFetcher.php
Contains \Drupal\aggregator\Plugin\aggregator\fetcher\DefaultFetcher.
EntityEnclosingRequest.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php
EntityEnclosingRequestInterface.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequestInterface.php
install.core.inc in drupal/core/includes/install.core.inc
API functions for installing Drupal.
locale.batch.inc in drupal/core/modules/locale/locale.batch.inc
Batch process to check the availability of remote or local po files.

... See full list

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Exception/RequestException.php, line 11

Namespace

Guzzle\Http\Exception
View source
class RequestException extends RuntimeException implements HttpException {

  /**
   * @var RequestInterface
   */
  protected $request;

  /**
   * Set the request that caused the exception
   *
   * @param RequestInterface $request Request to set
   *
   * @return RequestException
   */
  public function setRequest(RequestInterface $request) {
    $this->request = $request;
    return $this;
  }

  /**
   * Get the request that caused the exception
   *
   * @return RequestInterface
   */
  public function getRequest() {
    return $this->request;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RequestException::$request protected property
RequestException::getRequest public function Get the request that caused the exception
RequestException::setRequest public function Set the request that caused the exception