Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. JsonException.php

class JsonException

Same name in this branch
  1. 11.1.x vendor/symfony/browser-kit/Exception/JsonException.php \Symfony\Component\BrowserKit\Exception\JsonException

Thrown by Request::toArray() when the content cannot be JSON-decoded.

@author Tobias Nyholm <tobias.nyholm@gmail.com>

Hierarchy

  • class \Symfony\Component\HttpFoundation\Exception\UnexpectedValueException extends \Symfony\Component\HttpFoundation\Exception\UnexpectedValueException
    • class \Symfony\Component\HttpFoundation\Exception\UnexpectedValueException extends \Symfony\Component\HttpFoundation\Exception\UnexpectedValueException
      • class \Symfony\Component\HttpFoundation\Exception\JsonException extends \Symfony\Component\HttpFoundation\Exception\UnexpectedValueException implements \Symfony\Component\HttpFoundation\Exception\RequestExceptionInterface

Expanded class hierarchy of JsonException

1 file declares its use of JsonException
Request.php in vendor/symfony/http-foundation/Request.php

File

vendor/symfony/http-foundation/Exception/JsonException.php, line 19

Namespace

Symfony\Component\HttpFoundation\Exception
View source
final class JsonException extends UnexpectedValueException implements RequestExceptionInterface {

}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal