2023-12-19 14:15:51 +04:00

23 lines
621 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package ProjectElectricLocomotive;
import java.io.Serializable;
//create lab 7
public class LocoNotFoundException extends RuntimeException implements Serializable {
public LocoNotFoundException(int i) {
super("Не найден объект по позиции " + i);
}
public LocoNotFoundException(Throwable ex) {
super(ex);
}
public LocoNotFoundException(String message) {
super(message);
}
public LocoNotFoundException(String message, Throwable ex) { //Throwable люди пишут, посмотри внимательно
super(message, ex);
}
}