17 lines
651 B
C#
Raw Permalink Normal View History

2023-12-02 17:11:04 +04:00
using System.Runtime.Serialization;
namespace ProjectTank.Exceptions
{
[Serializable]
internal class TankNotFoundException : ApplicationException
{
public TankNotFoundException(int i) : base($"Не найден объект по позиции {i}") { }
public TankNotFoundException() : base() { }
public TankNotFoundException(string message) : base(message) { }
public TankNotFoundException(string message, Exception exception) :
base(message, exception) { }
protected TankNotFoundException(SerializationInfo info,
StreamingContext contex) : base(info, contex) { }
}
}