class CacheableResourceNotFoundException

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Routing/Exception/CacheableResourceNotFoundException.php \Drupal\Core\Routing\Exception\CacheableResourceNotFoundException

A cacheable ResourceNotFoundException.

Hierarchy

Expanded class hierarchy of CacheableResourceNotFoundException

3 files declare their use of CacheableResourceNotFoundException
Router.php in core/lib/Drupal/Core/Routing/Router.php
RouterListener.php in core/lib/Drupal/Core/Http/EventListener/RouterListener.php
RouterTest.php in core/tests/Drupal/KernelTests/Core/Routing/RouterTest.php

File

core/lib/Drupal/Core/Routing/Exception/CacheableResourceNotFoundException.php, line 12

Namespace

Drupal\Core\Routing\Exception
View source
class CacheableResourceNotFoundException extends ResourceNotFoundException implements CacheableDependencyInterface {
  use CacheableDependencyTrait;
  
  /**
   * {@inheritdoc}
   */
  public function __construct(CacheableDependencyInterface $cacheability, $message = '', $code = 0, ?\Throwable $previous = NULL) {
    $this->setCacheability($cacheability);
    parent::__construct($message, $code, $previous);
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.