testexception.java
来自「简单的在线考试系统 提供添加修改 考试等操作」· Java 代码 · 共 21 行
JAVA
21 行
package olts;
public class TestException extends Exception{
/**this class is the exception when there is
* a problem accessing exception
*/
private static final long serialVersionUID = 1L;
private Exception exception;
public TestException (String message){
super(message);
}
public TestException (Exception exception){
exception=this.exception;
}
public void printStackTrace(){
exception.printStackTrace();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?