Начало Lab7. Создание PlaneNotFoundException
This commit is contained in:
parent
726373a2a1
commit
557028cc39
19
AirBomber/AirBomber/PlaneNotFoundException.cs
Normal file
19
AirBomber/AirBomber/PlaneNotFoundException.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace AirBomber
|
||||||
|
{
|
||||||
|
internal class PlaneNotFoundException: ApplicationException
|
||||||
|
{
|
||||||
|
public PlaneNotFoundException(int i) : base($"Не найден объект по позиции {i}") { }
|
||||||
|
public PlaneNotFoundException() : base() { }
|
||||||
|
public PlaneNotFoundException(string message) : base(message) { }
|
||||||
|
public PlaneNotFoundException(string message, Exception exception) : base(message, exception)
|
||||||
|
{ }
|
||||||
|
protected PlaneNotFoundException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user