HttpException.
@author Kris Wallsmith <kris@symfony.com>
Expanded class hierarchy of HttpException
class HttpException extends \RuntimeException implements HttpExceptionInterface {
private $statusCode;
private $headers;
public function __construct($statusCode, $message = null, \Exception $previous = null, array $headers = array(), $code = 0) {
$this->statusCode = $statusCode;
$this->headers = $headers;
parent::__construct($message, $code, $previous);
}
public function getStatusCode() {
return $this->statusCode;
}
public function getHeaders() {
return $this->headers;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpException:: |
private | property | ||
HttpException:: |
private | property | ||
HttpException:: |
public | function |
Returns response headers. Overrides HttpExceptionInterface:: |
|
HttpException:: |
public | function |
Returns the status code. Overrides HttpExceptionInterface:: |
|
HttpException:: |
public | function | 14 |