From 557028cc392ede974b525d3a102a79bb2dba4362 Mon Sep 17 00:00:00 2001 From: malimova Date: Sun, 10 Dec 2023 20:53:32 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20Lab7.=20?= =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20PlaneNotFoun?= =?UTF-8?q?dException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirBomber/AirBomber/PlaneNotFoundException.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 AirBomber/AirBomber/PlaneNotFoundException.cs diff --git a/AirBomber/AirBomber/PlaneNotFoundException.cs b/AirBomber/AirBomber/PlaneNotFoundException.cs new file mode 100644 index 0000000..0f5c7e6 --- /dev/null +++ b/AirBomber/AirBomber/PlaneNotFoundException.cs @@ -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) { } + } +}