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