You are here

class UnsupportedMediaTypeHttpException in Zircon Profile 8

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

UnsupportedMediaTypeHttpException.

@author Ben Ramsey <ben@benramsey.com>

Hierarchy

Expanded class hierarchy of UnsupportedMediaTypeHttpException

3 files declare their use of UnsupportedMediaTypeHttpException
ContentTypeHeaderMatcher.php in core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php
Contains \Drupal\Core\Routing\ContentTypeHeaderMatcher.
FlattenExceptionTest.php in vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php
RequestHandler.php in core/modules/rest/src/RequestHandler.php
Contains \Drupal\rest\RequestHandler.

File

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

Namespace

Symfony\Component\HttpKernel\Exception
View source
class UnsupportedMediaTypeHttpException extends HttpException {

  /**
   * Constructor.
   *
   * @param string     $message  The internal exception message
   * @param \Exception $previous The previous exception
   * @param int        $code     The internal exception code
   */
  public function __construct($message = null, \Exception $previous = null, $code = 0) {
    parent::__construct(415, $message, $previous, array(), $code);
  }

}

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
UnsupportedMediaTypeHttpException::__construct public function Constructor. Overrides HttpException::__construct