From c80cd2c88cd8460ff2b97188acb3191da998a1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B9?= Date: Tue, 8 Nov 2022 00:36:19 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D0=BE=D0=B1=D1=81=D1=82=D0=B2=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ArtilleryNotFoundException.cs | 19 +++++++++++++++++++ .../StorageOverflowException.cs | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 SelfPropelledArtilleryUnit/ArtilleryNotFoundException.cs create mode 100644 SelfPropelledArtilleryUnit/StorageOverflowException.cs diff --git a/SelfPropelledArtilleryUnit/ArtilleryNotFoundException.cs b/SelfPropelledArtilleryUnit/ArtilleryNotFoundException.cs new file mode 100644 index 0000000..293d482 --- /dev/null +++ b/SelfPropelledArtilleryUnit/ArtilleryNotFoundException.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 SelfPropelledArtilleryUnit +{ + [Serializable] + internal class ArtilleryNotFoundException : ApplicationException + { + public ArtilleryNotFoundException(int i) : base($"Не найден объект по позиции {i}") { } + public ArtilleryNotFoundException() : base() { } + public ArtilleryNotFoundException(string message) : base(message) { } + public ArtilleryNotFoundException(string message, Exception exception) : base(message, exception) { } + protected ArtilleryNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } + } +} diff --git a/SelfPropelledArtilleryUnit/StorageOverflowException.cs b/SelfPropelledArtilleryUnit/StorageOverflowException.cs new file mode 100644 index 0000000..bbd7afd --- /dev/null +++ b/SelfPropelledArtilleryUnit/StorageOverflowException.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 SelfPropelledArtilleryUnit +{ + [Serializable] + internal class StorageOverflowException : ApplicationException + { + public StorageOverflowException(int count) : base($"В наборе превышенодопустимое количество: {count}") { } + public StorageOverflowException() : base() { } + public StorageOverflowException(string message) : base(message) { } + public StorageOverflowException(string message, Exception exception) : base(message, exception) { } + protected StorageOverflowException(SerializationInfo info, StreamingContext context) : base(info, context) { } + } +} \ No newline at end of file