part 2
This commit is contained in:
parent
aad872a57a
commit
87ecc3a666
15
AircraftNotFoundException.java
Normal file
15
AircraftNotFoundException.java
Normal 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);
|
||||
}
|
||||
}
|
15
StorageOverflowException.java
Normal file
15
StorageOverflowException.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user