Default handling for JSON errors.
Hierarchy
- class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterface
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
File
- core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php, line 12
Namespace
Drupal\Core\EventSubscriber
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ExceptionJsonSubscriber::getHandledFormats | protected | function | Specifies the request formats this subscriber will respond to. Overrides HttpExceptionSubscriberBase::getHandledFormats |
ExceptionJsonSubscriber::getPriority | protected static | function | Specifies the priority of all listeners in this class. Overrides HttpExceptionSubscriberBase::getPriority |
ExceptionJsonSubscriber::on400 | public | function | Handles a 400 error for JSON. |
ExceptionJsonSubscriber::on403 | public | function | Handles a 403 error for JSON. |
ExceptionJsonSubscriber::on404 | public | function | Handles a 404 error for JSON. |
ExceptionJsonSubscriber::on405 | public | function | Handles a 405 error for JSON. |
ExceptionJsonSubscriber::on406 | public | function | Handles a 406 error for JSON. |
ExceptionJsonSubscriber::on415 | public | function | Handles a 415 error for JSON. |
HttpExceptionSubscriberBase::getSubscribedEvents | public static | function | Registers the methods in this class that should be listeners. Overrides EventSubscriberInterface::getSubscribedEvents |
HttpExceptionSubscriberBase::onException | public | function | Handles errors for this subscriber. |
Please login to continue.