Files
PIBD24_BoikoM.S._Candyhouse/CandyHouseSolution/CandyHouseContracts/Exceptions/IncorrectDatesException.cs
2025-05-29 20:52:45 +04:00

7 lines
284 B
C#

namespace CandyHouseContracts.Exceptions;
public class IncorrectDatesException : Exception
{
public IncorrectDatesException(DateTime start, DateTime end) : base($"The end date must be later than the start date. StartDate: {start:dd.MM.yyyy}. EndDate: {end:dd.MM.yyyy}") { }
}