PIbd-14_Rachek_A.S._Base/lab_0/Exceptions/PositionOutOfCollectionException.cs
2024-06-17 00:13:00 +04:00

19 lines
675 B
C#

using System.Runtime.Serialization;
namespace ProjectBus.Exceptions;
[Serializable]
public class PositionOutOfCollectionException : ApplicationException
{
public PositionOutOfCollectionException(int i) : base("Выход за границы коллекции. Позиция " + i) { }
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) { }
}