Добавлены свои классы исключений
This commit is contained in:
parent
b8d9d10bd8
commit
5a12399986
22
ProjectStormtrooper/PlaneNotFoundException.java
Normal file
22
ProjectStormtrooper/PlaneNotFoundException.java
Normal file
@ -0,0 +1,22 @@
|
||||
package ProjectStormtrooper;
|
||||
|
||||
public class PlaneNotFoundException extends RuntimeException {
|
||||
public PlaneNotFoundException() {
|
||||
}
|
||||
|
||||
public PlaneNotFoundException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public PlaneNotFoundException(String message, Throwable exception) {
|
||||
super(message, exception);
|
||||
}
|
||||
|
||||
public PlaneNotFoundException(Throwable exception) {
|
||||
super(exception);
|
||||
}
|
||||
|
||||
protected PlaneNotFoundException(int pos) {
|
||||
super("Не найден объект по позиции " + pos);
|
||||
}
|
||||
}
|
22
ProjectStormtrooper/PlanesStorageOverflowException.java
Normal file
22
ProjectStormtrooper/PlanesStorageOverflowException.java
Normal file
@ -0,0 +1,22 @@
|
||||
package ProjectStormtrooper;
|
||||
|
||||
public class PlanesStorageOverflowException extends RuntimeException {
|
||||
public PlanesStorageOverflowException() {
|
||||
}
|
||||
|
||||
public PlanesStorageOverflowException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public PlanesStorageOverflowException(String message, Throwable exception) {
|
||||
super(message, exception);
|
||||
}
|
||||
|
||||
protected PlanesStorageOverflowException(Throwable exception) {
|
||||
super(exception);
|
||||
}
|
||||
|
||||
public PlanesStorageOverflowException(int count) {
|
||||
super("В наборе превышено допустимое количество: " + count);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user