<?php

namespace App\Framework\View\Exception;

use App\Framework\Exception\FrameworkException;

class TemplateNotFound extends FrameworkException
{
    protected string $template;

    public function __construct(string $template, ?\Throwable $previous = null, int $code = 0, array $context = [])
    {
        $this->template = $template;
        $message = "Das Template '$template' konnte nicht geladen werden.";
        parent::__construct($message, $code, $previous, $context);
    }
}
