2024-05-09 22:08:07 +04:00
|
|
|
|
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) { }
|
2024-05-09 22:08:07 +04:00
|
|
|
|
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) { }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|