From 5a12399986337273ec30838d5edcbf3a44b16417 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Mon, 18 Dec 2023 12:33:35 +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=B2=D0=BE=D0=B8=20=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D1=81=D1=81=D1=8B=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlaneNotFoundException.java | 22 +++++++++++++++++++ .../PlanesStorageOverflowException.java | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 ProjectStormtrooper/PlaneNotFoundException.java create mode 100644 ProjectStormtrooper/PlanesStorageOverflowException.java diff --git a/ProjectStormtrooper/PlaneNotFoundException.java b/ProjectStormtrooper/PlaneNotFoundException.java new file mode 100644 index 0000000..264d17b --- /dev/null +++ b/ProjectStormtrooper/PlaneNotFoundException.java @@ -0,0 +1,22 @@ +package ProjectStormtrooper; + +public class PlaneNotFoundException extends RuntimeException { + public PlaneNotFoundException() { + } + + public PlaneNotFoundException(String message) { + super(message); + } + + public PlaneNotFoundException(String message, Throwable exception) { + super(message, exception); + } + + public PlaneNotFoundException(Throwable exception) { + super(exception); + } + + protected PlaneNotFoundException(int pos) { + super("Не найден объект по позиции " + pos); + } +} diff --git a/ProjectStormtrooper/PlanesStorageOverflowException.java b/ProjectStormtrooper/PlanesStorageOverflowException.java new file mode 100644 index 0000000..1bd7635 --- /dev/null +++ b/ProjectStormtrooper/PlanesStorageOverflowException.java @@ -0,0 +1,22 @@ +package ProjectStormtrooper; + +public class PlanesStorageOverflowException extends RuntimeException { + public PlanesStorageOverflowException() { + } + + public PlanesStorageOverflowException(String message) { + super(message); + } + + public PlanesStorageOverflowException(String message, Throwable exception) { + super(message, exception); + } + + protected PlanesStorageOverflowException(Throwable exception) { + super(exception); + } + + public PlanesStorageOverflowException(int count) { + super("В наборе превышено допустимое количество: " + count); + } +}