forked from lino/radar-wp
Initial import.
This commit is contained in:
commit
86383280c9
428 changed files with 68738 additions and 0 deletions
39
vendor/guzzle/http/Guzzle/Http/Exception/RequestException.php
vendored
Normal file
39
vendor/guzzle/http/Guzzle/Http/Exception/RequestException.php
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue