14 lines
596 B
C#
14 lines
596 B
C#
|
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) { }
|
|||
|
}
|