16 lines
449 B
C#
16 lines
449 B
C#
using System;
|
|
|
|
namespace CandyHouseBase.Exceptions;
|
|
|
|
public class ElementExistsException : Exception
|
|
{
|
|
public string ParamName { get; private set; }
|
|
public string ParamValue { get; private set; }
|
|
|
|
public ElementExistsException(string paramName, string paramValue) :
|
|
base($"There is already an element with value {paramValue} of parameter {paramName}")
|
|
{
|
|
ParamName = paramName;
|
|
ParamValue = paramValue;
|
|
}
|
|
} |