1931caae4f6c3967b93036f58d6343031f434ef8
[yaffs-website] / web / core / lib / Drupal / Core / Http / Exception / CacheableUnauthorizedHttpException.php
1 <?php
2
3 namespace Drupal\Core\Http\Exception;
4
5 use Drupal\Core\Cache\CacheableDependencyInterface;
6 use Drupal\Core\Cache\CacheableDependencyTrait;
7 use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
8
9 /**
10  * A cacheable UnauthorizedHttpException.
11  */
12 class CacheableUnauthorizedHttpException extends UnauthorizedHttpException implements CacheableDependencyInterface {
13
14   use CacheableDependencyTrait;
15
16   /**
17    * {@inheritdoc}
18    */
19   public function __construct(CacheableDependencyInterface $cacheability, $challenge, $message = NULL, \Exception $previous = NULL, $code = 0) {
20     $this->setCacheability($cacheability);
21     parent::__construct($challenge, $message, $previous, $code);
22   }
23
24 }