Handles default error responses in serialization formats.
Hierarchy
- class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterface
- class \Drupal\serialization\EventSubscriber\DefaultExceptionSubscriber
File
- core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 13
Namespace
Drupal\serialization\EventSubscriber
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DefaultExceptionSubscriber::$serializer | protected | property | The serializer. |
DefaultExceptionSubscriber::$serializerFormats | protected | property | The available serialization formats. |
DefaultExceptionSubscriber::getHandledFormats | protected | function | Specifies the request formats this subscriber will respond to. Overrides HttpExceptionSubscriberBase::getHandledFormats |
DefaultExceptionSubscriber::getPriority | protected static | function | Specifies the priority of all listeners in this class. Overrides HttpExceptionSubscriberBase::getPriority |
DefaultExceptionSubscriber::on400 | public | function | Handles a 400 error for HTTP. |
DefaultExceptionSubscriber::on403 | public | function | Handles a 403 error for HTTP. |
DefaultExceptionSubscriber::on404 | public | function | Handles a 404 error for HTTP. |
DefaultExceptionSubscriber::on405 | public | function | Handles a 405 error for HTTP. |
DefaultExceptionSubscriber::on406 | public | function | Handles a 406 error for HTTP. |
DefaultExceptionSubscriber::on422 | public | function | Handles a 422 error for HTTP. |
DefaultExceptionSubscriber::on429 | public | function | Handles a 429 error for HTTP. |
DefaultExceptionSubscriber::setEventResponse | protected | function | Sets the Response for the exception event. |
DefaultExceptionSubscriber::__construct | public | function | DefaultExceptionSubscriber constructor. |
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.