PIBD-14_Lavrova_K.I._Simple/solution/lab1/Exceptions/ObjectIsEqualException.cs

14 lines
629 B
C#
Raw Permalink Normal View History

2024-10-22 13:37:29 +04:00
using System.Runtime.Serialization;
namespace ProjectSeaplane.Exceptions;
[Serializable]
public class ObjectIsEqualException : ApplicationException
{
public ObjectIsEqualException(int count) : base("В коллекции содержится равный элемент: " + count) { }
public ObjectIsEqualException() : base() { }
public ObjectIsEqualException(string message) : base(message) { }
public ObjectIsEqualException(string message, Exception exception) : base(message, exception) { }
protected ObjectIsEqualException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
}