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