Files
Pibd-21_Semin_D.A._SmallSof…/SmallSoftwareProject/SmallSoftwareContracts/Exceptions/ElementExistsException.cs
2025-04-24 00:06:05 +04:00

11 lines
473 B
C#

using Microsoft.Extensions.Localization;
using SmallSoftwareContracts.Resources;
namespace SmallSoftwareContracts.Exceptions;
internal class ElementExistsException(string paramName, string paramValue, IStringLocalizer<Messages> localizer) :
Exception(string.Format(localizer["ElementExistsExceptionMessage"], paramValue, paramName))
{
public string ParamName { get; private set; } = paramName;
public string ParamValue { get; private set; } = paramValue;
}