Default handling for JSON errors.
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::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. |
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. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!ExceptionJsonSubscriber.php/class/ExceptionJsonSubscriber/8.1.x