DefaultExceptionSubscriber::$serializer

The serializer. Type: \Symfony\Component\Serializer\Serializer File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 20 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code protected $serializer;

DefaultExceptionSubscriber::$errorLevel

One of the error level constants defined in bootstrap.inc. Type: string File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 31 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected $errorLevel;

DefaultExceptionSubscriber::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 38 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected $configFactory;

DefaultExceptionSubscriber

Handles default error responses in serialization formats. Hierarchy class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterfaceclass \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

DefaultExceptionSubscriber

Last-chance handler for exceptions. This handler will catch any exceptions not caught elsewhere and report them as an error page. Hierarchy class \Drupal\Core\EventSubscriber\DefaultExceptionSubscriber implements EventSubscriberInterface uses StringTranslationTrait File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 23 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description DefaultExceptionSubscriber::$configFactory protected

DefaultExceptionHtmlSubscriber::__construct

public DefaultExceptionHtmlSubscriber::__construct(HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router) Constructs a new DefaultExceptionHtmlSubscriber. Parameters \Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel. \Psr\Log\LoggerInterface $logger: The logger service. \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination

DefaultExceptionHtmlSubscriber::on404

public DefaultExceptionHtmlSubscriber::on404(GetResponseForExceptionEvent $event) Handles a 404 error for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, line 108 Class DefaultExceptionHtmlSubscriber Exception subscriber for handling core default HTML error pages. Namespace Drupal\Core\EventSubscriber Code public function on404(GetResponseForExc

DefaultExceptionHtmlSubscriber::on403

public DefaultExceptionHtmlSubscriber::on403(GetResponseForExceptionEvent $event) Handles a 403 error for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, line 98 Class DefaultExceptionHtmlSubscriber Exception subscriber for handling core default HTML error pages. Namespace Drupal\Core\EventSubscriber Code public function on403(GetResponseForExce

DefaultExceptionHtmlSubscriber::on401

public DefaultExceptionHtmlSubscriber::on401(GetResponseForExceptionEvent $event) Handles a 401 error for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, line 88 Class DefaultExceptionHtmlSubscriber Exception subscriber for handling core default HTML error pages. Namespace Drupal\Core\EventSubscriber Code public function on401(GetResponseForExce

DefaultExceptionHtmlSubscriber::makeSubrequest

protected DefaultExceptionHtmlSubscriber::makeSubrequest(GetResponseForExceptionEvent $event, $url, $status_code) Makes a subrequest to retrieve the default error page. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. string $url: The path/url to which to make a subrequest for this error message. int $status_code: The status code for the error being handled. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, li