2024-04-24 23:26:19 +04:00
|
|
|
|
using System.Runtime.Serialization;
|
2024-04-25 02:31:55 +04:00
|
|
|
|
using ProjectElectroTrans.CollectionGenericObjects;
|
2024-04-24 23:26:19 +04:00
|
|
|
|
|
|
|
|
|
namespace ProjectElectroTrans.Exceptions;
|
|
|
|
|
|
|
|
|
|
public class CollectionAlreadyExistsException : Exception
|
|
|
|
|
{
|
|
|
|
|
public CollectionAlreadyExistsException() : base() { }
|
2024-04-25 02:31:55 +04:00
|
|
|
|
public CollectionAlreadyExistsException(CollectionInfo collectionInfo) : base($"Коллекция {collectionInfo} уже существует!") { }
|
2024-04-24 23:26:19 +04:00
|
|
|
|
public CollectionAlreadyExistsException(string name, Exception exception) :
|
|
|
|
|
base($"Коллекция {name} уже существует!", exception) { }
|
|
|
|
|
protected CollectionAlreadyExistsException(SerializationInfo info, StreamingContext
|
|
|
|
|
contex) : base(info, contex) { }
|
|
|
|
|
}
|