incompattexception.java
来自「Boosting算法软件包」· Java 代码 · 共 35 行
JAVA
35 行
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 + =
减小字号Ctrl + -
显示快捷键?