using System.Runtime.Serialization; namespace ProjectBulldozer.Exceptions { [Serializable] internal class BulldozerNotFoundException : ApplicationException { public BulldozerNotFoundException(int i) : base($"Не найден объект по позиции {i}") { } public BulldozerNotFoundException() : base() { } public BulldozerNotFoundException(string message) : base(message) { } public BulldozerNotFoundException(string message, Exception exception) : base(message, exception) { } protected BulldozerNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }