create lab 7

This commit is contained in:
ekallin 2023-12-18 17:46:26 +04:00
parent 20775f7f26
commit 95a493034f
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package ProjectElectricLocomotive;
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);
}
}

View File

@ -10,6 +10,9 @@ import java.io.FileReader;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
/*import org.slf4j.Logger;
import org.slf4j.LoggerFactory;*/
public class LocomotivesGenericStorage { public class LocomotivesGenericStorage {
private static final String _separatorForKeyValue = "@"; private static final String _separatorForKeyValue = "@";