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