class HttpException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Exception/HttpException.php \Symfony\Component\HttpKernel\Exception\HttpException
HttpException.
@author Kris Wallsmith <kris@symfony.com>
Hierarchy
- class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements HttpExceptionInterface
Expanded class hierarchy of HttpException
7 files declare their use of HttpException
- DBLogResource.php in core/
modules/ dblog/ src/ Plugin/ rest/ resource/ DBLogResource.php - Contains \Drupal\dblog\Plugin\rest\resource\DBLogResource.
- EntityResource.php in core/
modules/ rest/ src/ Plugin/ rest/ resource/ EntityResource.php - Contains \Drupal\rest\Plugin\rest\resource\EntityResource.
- FormAjaxResponseBuilder.php in core/
lib/ Drupal/ Core/ Form/ FormAjaxResponseBuilder.php - Contains \Drupal\Core\Form\FormAjaxResponseBuilder.
- FormAjaxSubscriberTest.php in core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php - Contains \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest.
- ProfilerListenerTest.php in vendor/
symfony/ http-kernel/ Tests/ EventListener/ ProfilerListenerTest.php
File
- vendor/
symfony/ http-kernel/ Exception/ HttpException.php, line 19
Namespace
Symfony\Component\HttpKernel\ExceptionView source
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;
}
}
Members
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 | 15 |