Handle HAL JSON exceptions the same as JSON exceptions.
Hierarchy
- class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterface
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
- class \Drupal\hal\EventSubscriber\ExceptionHalJsonSubscriber
- class \Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
File
- core/modules/hal/src/EventSubscriber/ExceptionHalJsonSubscriber.php, line 10
Namespace
Drupal\hal\EventSubscriber
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ExceptionHalJsonSubscriber::getHandledFormats | protected | function | Specifies the request formats this subscriber will respond to. Overrides ExceptionJsonSubscriber::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.