11 lines
366 B
C#
11 lines
366 B
C#
using Microsoft.Extensions.Localization;
|
|
using SmallSoftwareContracts.Resources;
|
|
|
|
namespace SmallSoftwareContracts.Exceptions;
|
|
|
|
internal class ElementNotFoundException(string value, IStringLocalizer<Messages> localizer) :
|
|
Exception(string.Format(localizer["ElementNotFoundExceptionMessage"], value))
|
|
{
|
|
public string Value { get; private set; } = value;
|
|
}
|