Karamushko M.K Lab work 7 #7

Closed
maxKarme wants to merge 2 commits from lab7_hard into lab6_hard
2 changed files with 30 additions and 0 deletions
Showing only changes of commit 87ecc3a666 - Show all commits

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