Files
ChamomileProject/DaisiesContracts/Exceptions/IncorrectDatesException.cs

9 lines
348 B
C#

using static System.Runtime.InteropServices.JavaScript.JSType;
namespace DaisiesContracts.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}") { }
}