interface HttpExceptionInterface

Interface for HTTP error exceptions.

@author Kris Wallsmith <kris@symfony.com>

Hierarchy

Expanded class hierarchy of HttpExceptionInterface

All classes that implement HttpExceptionInterface

3 files declare their use of HttpExceptionInterface
ExceptionListener.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php
FlattenException.php in drupal/core/vendor/symfony/debug/Symfony/Component/Debug/Exception/FlattenException.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