2024-04-19 19:56:36 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AntiAircraftGun.Exceptions;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Класс, описывающий ошибку переполнения коллекции
|
|
|
|
|
/// </summary>
|
2024-05-05 12:00:21 +04:00
|
|
|
|
[Serializable]
|
2024-04-19 19:56:36 +04:00
|
|
|
|
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) { }
|
|
|
|
|
}
|