12 lines
467 B
C#
12 lines
467 B
C#
|
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} уроки не найдена.")
|
|||
|
{ }
|
|||
|
}
|
|||
|
}
|