📄 incompattexception.java
字号:
package jboost.learner;/** An exception that indicates that an attribute is not what it is expected to be */public class IncompAttException extends RuntimeException{ private String message; public IncompAttException(String m) {message=m;} IncompAttException(int example, int attribute, String expected, Class actual) { message = "IncompAttException: example no." + example + " attribute no. " + attribute + ", expected class " + expected + ", actual " + actual; } IncompAttException(String pre , int attribute, Class actual) { message = pre + ", attribute no. " + attribute + ", actual " + actual; } public String getMessage() { return(message); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -