<?php

declare(strict_types=1);

namespace App\Scolarite\Domain\Exception;

use App\Scolarite\Domain\Model\Schedule\ScheduleSlotId;
use RuntimeException;

final class ScheduleSlotNotFoundException extends RuntimeException
{
    public static function avecId(ScheduleSlotId $id): self
    {
        return new self("Créneau d'emploi du temps introuvable : $id.");
    }
}
