15 lines
477 B
C#
15 lines
477 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AndDietCokeContracts.Resources;
|
|
using Microsoft.Extensions.Localization;
|
|
|
|
namespace AndDietCokeContracts.Exceptions;
|
|
|
|
internal class ElementNotFoundException(string value, IStringLocalizer<Messages> localizer) :
|
|
Exception(string.Format(localizer["ElementNotFoundExceptionMessage"], value))
|
|
{
|
|
public string Value { get; private set; } = value;
|
|
} |