presence_api/data/Exceptions/PresenceNotFoundException.cs

12 lines
467 B
C#
Raw Normal View History

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