7 lines
284 B
C#
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}") { }
|
|
}
|