DefaultExceptionSubscriber::__construct

public DefaultExceptionSubscriber::__construct(SerializerInterface $serializer, array $serializer_formats) DefaultExceptionSubscriber constructor. Parameters \Symfony\Component\Serializer\SerializerInterface $serializer: The serializer service. array $serializer_formats: The available serialization formats. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 37 Class DefaultExceptionSubscriber Handles default error responses in serialization formats.

DefaultExceptionSubscriber::__construct

public DefaultExceptionSubscriber::__construct(ConfigFactoryInterface $config_factory) Constructs a new DefaultExceptionSubscriber. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 46 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code public function __construct(ConfigFactoryInterface $config_factor

DefaultExceptionSubscriber::setEventResponse

protected DefaultExceptionSubscriber::setEventResponse(GetResponseForExceptionEvent $event, $status) Sets the Response for the exception event. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The current exception event. int $status: The HTTP status code to set for the response. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 136 Class DefaultExceptionSubscriber Handles default error responses in serialization fo

DefaultExceptionSubscriber::onJson

protected DefaultExceptionSubscriber::onJson(GetResponseForExceptionEvent $event) Handles any exception as a generic error page for JSON. @todo This should probably check the error reporting level. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 143 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscri

DefaultExceptionSubscriber::onHtml

protected DefaultExceptionSubscriber::onHtml(GetResponseForExceptionEvent $event) Handles any exception as a generic error page for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 68 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected function onHtml(GetResponseForExceptionEv

DefaultExceptionSubscriber::onFormatUnknown

protected DefaultExceptionSubscriber::onFormatUnknown(GetResponseForExceptionEvent $event) Handles an HttpExceptionInterface exception for unknown formats. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 169 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected function onFormatUnkno

DefaultExceptionSubscriber::onException

public DefaultExceptionSubscriber::onException(GetResponseForExceptionEvent $event) Handles errors for this subscriber. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 183 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code public function onException(GetResponseForExceptionEvent $event) {

DefaultExceptionSubscriber::on429

public DefaultExceptionSubscriber::on429(GetResponseForExceptionEvent $event) Handles a 429 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 124 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on429(GetResponseForExc

DefaultExceptionSubscriber::on422

public DefaultExceptionSubscriber::on422(GetResponseForExceptionEvent $event) Handles a 422 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 114 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on422(GetResponseForExc

DefaultExceptionSubscriber::on406

public DefaultExceptionSubscriber::on406(GetResponseForExceptionEvent $event) Handles a 406 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 104 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on406(GetResponseForExc