mirror of
https://0xacab.org/radar/radar-wp.git
synced 2024-12-24 01:26:27 +01:00
39 lines
774 B
PHP
39 lines
774 B
PHP
<?php
|
|
|
|
namespace Guzzle\Http\Exception;
|
|
|
|
use Guzzle\Common\Exception\RuntimeException;
|
|
use Guzzle\Http\Message\RequestInterface;
|
|
|
|
/**
|
|
* Http request exception
|
|
*/
|
|
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;
|
|
}
|
|
}
|