interface HttpExceptionInterface

Interface for HTTP error exceptions.

@author Kris Wallsmith <kris@symfony.com>

Hierarchy

Expanded class hierarchy of HttpExceptionInterface

All classes that implement HttpExceptionInterface

4 files declare their use of HttpExceptionInterface
ExceptionDataCollector.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php
ExceptionListener.php in drupal/core/lib/Drupal/Core/EventSubscriber/ExceptionListener.php
ExceptionListener.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php
HttpKernel.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.php, line 19

Namespace

Symfony\Component\HttpKernel\Exception
View source
interface HttpExceptionInterface {

  /**
   * Returns the status code.
   *
   * @return integer An HTTP response status code
   */
  public function getStatusCode();

  /**
   * Returns response headers.
   *
   * @return array Response headers
   */
  public function getHeaders();

}

Members

Namesort descending Modifiers Type Description Overrides
HttpExceptionInterface::getHeaders public function Returns response headers. 1
HttpExceptionInterface::getStatusCode public function Returns the status code. 1