Http request exception
Expanded class hierarchy of RequestException
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;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequestException:: |
protected | property | ||
RequestException:: |
public | function | Set the request that caused the exception | |
RequestException:: |
public | function | Get the request that caused the exception |