using ProjectElectricLocomotive.CollectionGenericObjects; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace ProjectElectricLocomotive.Exceptions { [Serializable] public class CollectionExistsException : Exception { public CollectionExistsException() : base() { } public CollectionExistsException(CollectionInfo collectionInfo) : base("Коллекция " + collectionInfo + " уже создана") { } public CollectionExistsException(string name, Exception exception) : base("Коллекция " + name + " уже создана", exception) { } protected CollectionExistsException(SerializationInfo info, StreamingContext contex) : base(info, contex) { } } }