2024-06-15 23:48:53 +04:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
namespace ProjectCruiser.Exceptions;
|
|
|
|
|
|
|
|
|
|
// Класс, описывающий ошибку выхода за границы коллекции
|
|
|
|
|
[Serializable]
|
|
|
|
|
internal class PositionOutOfCollectionException : ApplicationException
|
|
|
|
|
{
|
|
|
|
|
public PositionOutOfCollectionException(int i)
|
2024-06-16 19:46:37 +04:00
|
|
|
|
: base("<> Out of collection\nboarder. Position : " + i) { }
|
2024-06-15 23:48:53 +04:00
|
|
|
|
public PositionOutOfCollectionException() : base() { }
|
|
|
|
|
public PositionOutOfCollectionException(string message) : base(message) { }
|
|
|
|
|
public PositionOutOfCollectionException(string message,
|
|
|
|
|
Exception exception) : base(message, exception) { }
|
|
|
|
|
protected PositionOutOfCollectionException(SerializationInfo info,
|
|
|
|
|
StreamingContext contex) : base(info, contex) { }
|
|
|
|
|
}
|