PIbd-21_KozyrevSS_GasolineT.../Lab/CarNotFoundException.cs

20 lines
718 B
C#
Raw Normal View History

2023-11-28 13:51:41 +04:00
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) { }
}
}