Teren-app/app/Services/Documents/Exceptions/UnresolvedTokensException.php

21 lines
466 B
PHP

<?php
namespace App\Services\Documents\Exceptions;
use RuntimeException;
class UnresolvedTokensException extends RuntimeException
{
/** @var array<int,string> */
public array $unresolved;
/**
* @param array<int,string> $unresolved
*/
public function __construct(array $unresolved, string $message = 'Unresolved tokens remain in template.')
{
parent::__construct($message);
$this->unresolved = $unresolved;
}
}