c9647aa3a8af45109d6fe637c38e630e36f1ad51
[yaffs-website] / web / core / lib / Drupal / Core / Http / Exception / CacheableLengthRequiredHttpException.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\LengthRequiredHttpException;
8
9 /**
10  * A cacheable LengthRequiredHttpException.
11  */
12 class CacheableLengthRequiredHttpException extends LengthRequiredHttpException implements CacheableDependencyInterface {
13
14   use CacheableDependencyTrait;
15
16   /**
17    * {@inheritdoc}
18    */
19   public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) {
20     $this->setCacheability($cacheability);
21     parent::__construct($message, $previous, $code);
22   }
23
24 }