20 lines
565 B
Java
Raw Normal View History

2023-12-18 17:46:26 +04:00
package ProjectElectricLocomotive;
2023-12-18 17:48:19 +04:00
//create lab 7
2023-12-18 17:46:26 +04:00
public class LocoNotFoundException extends RuntimeException {
public LocoNotFoundException(int i) {
super("Не найден объект по позиции" + i);
}
public LocoNotFoundException(Throwable ex) {
super(ex);
}
public LocoNotFoundException(String message) {
super(message);
}
public LocoNotFoundException(String message, Exception ex) { //Throwable люди пишут, посмотри внимательно
super(message, ex);
}
}