eae59f1c0e4807f7f541a105c801639a3f22c950
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Type\Parser\Exception\Template;
6
7 use CuyZ\Valinor\Type\Parser\Exception\InvalidType;
8 use LogicException;
9
10 /** @internal */
11 final class InvalidTemplateType extends LogicException implements InvalidTemplate
12 {
13 public function __construct(string $type, string $template, InvalidType $exception)
14 {
15 parent::__construct(
16 "Invalid type `$type` for the template `$template`: {$exception->getMessage()}",
17 1607445951,
18 $exception
19 );
20 }
21 }