diff --git a/ArtilleryNotFoundException.java b/ArtilleryNotFoundException.java new file mode 100644 index 0000000..1faca14 --- /dev/null +++ b/ArtilleryNotFoundException.java @@ -0,0 +1,21 @@ +public class ArtilleryNotFoundException extends RuntimeException { + public ArtilleryNotFoundException() { + + } + + public ArtilleryNotFoundException(int i) { + super("Не найден объект по позиции " + i); + } + + public ArtilleryNotFoundException(String message) { + super(message); + } + + public ArtilleryNotFoundException(String message, Throwable cause) { + super(message, cause); + } + + public ArtilleryNotFoundException(Throwable cause) { + super(cause); + } +} diff --git a/StorageOverflowException.java b/StorageOverflowException.java new file mode 100644 index 0000000..2151c07 --- /dev/null +++ b/StorageOverflowException.java @@ -0,0 +1,19 @@ +public class StorageOverflowException extends RuntimeException{ + public StorageOverflowException() { + } + + public StorageOverflowException(String message) { + super(message); + } + public StorageOverflowException(int count) { + super("В наборе превышено допустимое количество: " + count); + } + + public StorageOverflowException(String message, Throwable cause) { + super(message, cause); + } + + public StorageOverflowException(Throwable cause) { + super(cause); + } +} \ No newline at end of file