create lab 7
This commit is contained in:
parent
20775f7f26
commit
95a493034f
19
ProjectElectricLocomotive/LocoNotFoundException.java
Normal file
19
ProjectElectricLocomotive/LocoNotFoundException.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
@ -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 = "@";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user