2024-05-12 10:58:04 +03:00

22 lines
819 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace ProjectElectricLocomotive.Exceptions
{
public class CollectionDuplicateException : Exception
{
public CollectionDuplicateException(object obj) : base("Объект " + obj + " не является уникальным") { }
public CollectionDuplicateException() : base() { }
public CollectionDuplicateException(string message) : base(message) { }
public CollectionDuplicateException(string message, Exception exception) :
base(message, exception)
{ }
protected CollectionDuplicateException(SerializationInfo info, StreamingContext
contex) : base(info, contex) { }
}
}