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