You are here

class HttpException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Exception/HttpException.php \Symfony\Component\HttpKernel\Exception\HttpException

HttpException.

@author Kris Wallsmith <kris@symfony.com>

Hierarchy

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

... See full list

File

vendor/symfony/http-kernel/Exception/HttpException.php, line 19

Namespace

Symfony\Component\HttpKernel\Exception
View 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

Namesort descending Modifiers Type Description Overrides
HttpException::$headers private property
HttpException::$statusCode private property
HttpException::getHeaders public function Returns response headers. Overrides HttpExceptionInterface::getHeaders
HttpException::getStatusCode public function Returns the status code. Overrides HttpExceptionInterface::getStatusCode
HttpException::__construct public function 15