presence_api/data/Exceptions/PresenceNotFoundException.cs

12 lines
462 B
C#
Raw Permalink Normal View History

2024-11-11 11:35:05 +00:00
using System;
namespace data.Exceptions
{
public class PresenceNotFoundException : RepositoryException
{
public PresenceNotFoundException(int userId, DateOnly date, int firstLesson, int lastLesson)
: base($"Посещаемость для пользователя ID: {userId} на дату {date.ToShortDateString()}" +
$" с {firstLesson} по {lastLesson} уроки не найдена.")
{ }
}
}