PIbd-12_Alkin_D.V_AirBomber.../AirBomber/Exceptions/CollectionOverflowException.cs

18 lines
793 B
C#
Raw Normal View History

2024-05-21 01:53:54 +04:00
using System.Runtime.Serialization;
2024-05-21 03:17:11 +04:00
namespace AirBomber.Exceptions;
2024-05-21 01:53:54 +04:00
/// <summary>
/// Класс, описывающий ошибку переполнения коллекции
/// </summary>
[Serializable]
internal 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) { }
}