class 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);
  }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CacheableDependencyTrait::$cacheContexts protected property Cache contexts.
CacheableDependencyTrait::$cacheMaxAge protected property Cache max-age.
CacheableDependencyTrait::$cacheTags protected property Cache tags.
CacheableDependencyTrait::getCacheContexts public function 4
CacheableDependencyTrait::getCacheMaxAge public function 4
CacheableDependencyTrait::getCacheTags public function 4
CacheableDependencyTrait::setCacheability protected function Sets cacheability; useful for value object constructors.
CacheableResourceNotFoundException::__construct public function

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