Files
PIBD-23_Coursach_YouAreProg…/YouAreProgrammerShop/YAPContracts/Exceptions/ElementNotFoundException.cs

18 lines
416 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YAPContracts.Exceptions
{
public class ElementNotFoundException : Exception
{
public string Value { get; private set; }
public ElementNotFoundException(string value) : base($"Element \'{value}\' not found")
{
Value = value;
}
}
}