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) { }
|
|
|
|
|
}
|
|
|
|
|
|