diff --git a/AircraftNotFoundException.java b/AircraftNotFoundException.java new file mode 100644 index 0000000..d5b5558 --- /dev/null +++ b/AircraftNotFoundException.java @@ -0,0 +1,15 @@ +class AircraftNotFoundException extends RuntimeException +{ + public AircraftNotFoundException(int i) { + super("Не найден объект по позиции " + i); + } + public AircraftNotFoundException() { + super(); + } + public AircraftNotFoundException(String message) { + super(message); + } + public AircraftNotFoundException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/StorageOverflowException.java b/StorageOverflowException.java new file mode 100644 index 0000000..4794fe4 --- /dev/null +++ b/StorageOverflowException.java @@ -0,0 +1,15 @@ +class StorageOverflowException extends RuntimeException +{ + public StorageOverflowException(int count) { + super("В наборе превышено допустимое количество: " + count); + } + public StorageOverflowException() { + super(); + } + public StorageOverflowException(String message) { + super(message); + } + public StorageOverflowException(String message, Throwable cause) { + super(message, cause); + } +}