PIBD-14_Khalikova.A.R_Storm.../ProjectStormtrooper/Exceptions/CollectionOverflowException.cs

23 lines
926 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace ProjectStormtrooper.Exceptions;
/// <summary>
/// Класс, описывающий ошибку переполнения коллекции
/// </summary>
[Serializable]
internal class CollectionOverflowException:ApplicationException
{
2024-05-14 10:01:44 +04:00
public CollectionOverflowException(int count): base("В коллекции превышено допустимое количество: count " + count) { }
public CollectionOverflowException() : base() { }
public CollectionOverflowException(string message): base(message) { }
public CollectionOverflowException(string message, Exception exception) : base(message, exception) { }
protected CollectionOverflowException(SerializationInfo info,StreamingContext context) : base(info, context) { }
}