PIbd22_Kamcharova_K.A._Doub.../DoubleDeckerBus/Exceptions/BusNotFoundException.cs

20 lines
746 B
C#
Raw Normal View History

2023-12-29 22:22:51 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
namespace DoubleDeckerbus.Exceptions
{
[Serializable]
internal class BusNotFoundException : ApplicationException
{
public BusNotFoundException(int i) : base($"Не найден объект по позиции {i}") { }
public BusNotFoundException() : base() { }
public BusNotFoundException(string message) : base(message) { }
public BusNotFoundException(string message, Exception exception) : base(message, exception) { }
protected BusNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}
}