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); + } +}