class RequestException

Http request exception

Hierarchy

Expanded class hierarchy of RequestException

4 files declare their use of RequestException
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
Request.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
RequestInterface.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestInterface.php

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