PIbd-21_Bakalskaya_E.D._Ele.../ProjectElectricLocomotive/LocoStorageOverflowException.java
2023-12-19 14:15:51 +04:00

20 lines
620 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;
public class LocoStorageOverflowException extends RuntimeException implements Serializable {
public LocoStorageOverflowException(Throwable ex){
super(ex);
}
public LocoStorageOverflowException(int count){
super("В наборе превышено допустимое количество локомотивов: " + count);
}
public LocoStorageOverflowException(String message){
super(message);
}
public LocoStorageOverflowException(String message, Throwable ex){
super(message, ex);
}
}