PIbd-14_Rachek_A.S._Base/lab_0/Exceptions/CollectionOverflowException.cs

21 lines
671 B
C#
Raw Normal View History

2024-06-17 00:13:00 +04:00
using System.Runtime.Serialization;
namespace ProjectBus.Exceptions;
[Serializable]
public class CollectionOverflowException : ApplicationException
{
public CollectionOverflowException(int count) : base("В коллекции превышено допустимое количество: " + count) { }
public CollectionOverflowException() : base(){}
public CollectionOverflowException(string message) : base(message) { }
public CollectionOverflowException(string message, Exception exception) : base(message, exception) { }
protected CollectionOverflowException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
}