11 lines
473 B
C#
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;
|
|
} |