This commit is contained in:
MaxKarme 2022-12-15 13:56:38 +03:00
parent aad872a57a
commit 87ecc3a666
2 changed files with 30 additions and 0 deletions

View File

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

View File

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