2024-06-15 23:48:53 +04:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
namespace ProjectCruiser.Exceptions;
|
|
|
|
|
|
|
|
|
|
// Класс, описывающий ошибку переполнения коллекции
|
|
|
|
|
[Serializable]
|
|
|
|
|
internal class CollectionOverflowException : ApplicationException
|
|
|
|
|
{
|
|
|
|
|
public CollectionOverflowException(int count)
|
2024-06-16 19:46:37 +04:00
|
|
|
|
: base("<> Possible accsess\nof collection is over : " + count) { }
|
2024-06-15 23:48:53 +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 contex) : base(info, contex) { }
|
|
|
|
|
}
|
|
|
|
|
|