appexception.java
来自「尚学堂科技_王勇_JAVA视频教程_Hibernate源代码及重要说明」· Java 代码 · 共 30 行
JAVA
30 行
package com.bjsxt.drp.business.util;
public class AppException extends RuntimeException {
private Object[] args;
private String errorCode;
public AppException (String errorCode) {
this.errorCode = errorCode;
}
public AppException(String errorCode, String args0) {
this(errorCode, new Object[]{args0});
}
public AppException(String errorCode, Object[] args) {
this.errorCode = errorCode;
this.args = args;
}
public String getErrorCode() {
return this.errorCode;
}
public Object[] getArgs() {
return args;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?