using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace ProjectBus.Exceptions; public class CollectionAlreadyExistsException : Exception { public CollectionAlreadyExistsException() : base() { } public CollectionAlreadyExistsException(string name) : base($"Коллекция {name} уже существует!") { } public CollectionAlreadyExistsException(string name, Exception exception) :base($"Коллекция {name} уже существует!", exception) { } protected CollectionAlreadyExistsException(SerializationInfo info, StreamingContext contex) : base(info, contex) { } }