forked from slavaxom9k/PIBD-23_Fomichev_V.S._MagicCarpet
14 lines
482 B
C#
14 lines
482 B
C#
using MagicCarpetContracts.Resources;
|
|
using Microsoft.Extensions.Localization;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagicCarpetContracts.Exceptions;
|
|
|
|
internal class IncorrectDatesException(DateTime start, DateTime end, IStringLocalizer<Messages> localizer) :
|
|
Exception(string.Format(localizer["IncorrectDatesExceptionMessage"], start.ToShortDateString(), end.ToShortDateString()))
|
|
{ }
|