📄 testexception.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -