📄 goldexception.java
字号:
package cmd.db;
import java.lang.Exception;
public class GoldException extends java.lang.Exception
{
public GoldException (int iErrorType,String sErrorMessage)
{
// TODO : implement
this.iErrorType=iErrorType;
this.sErrorMessage=sErrorMessage;
}
public GoldException ()
{
// TODO : implement
}
public int getErrorType()
{
return iErrorType;
}
public String getErrorMessage()
{
return sErrorMessage;
}
/** 数据库错误
* "DATA_ERROR" */
public static final int DATA_ERROR = 100101;
/** 数据库连接错误
* "DATA_CONNECTION_ERROR" */
public static final int DATA_CONNECTION_ERROR = 100102;
/** 没有数据库连接错误
* "DATA_NO_CONNECTION" */
public static final int DATA_NO_CONNECTION = 100103;
/** 提交的SQL语句错误
* "DATA_SQL_CONNECTION" */
public static final int DATA_SQL_ERROE = 100201;
/** 格式定义数据错误
* "DATA_FORMAT_INVALID" */
public static final int DATA_FORMAT_INVALID = 100504;
/** 节点数据类型错误
* "DATA_TYPE_ERROR" */
public static final int DATA_TYPE_ERROR = 100505;
/** 所需的数据没找到错误
* "DATA_NOT_FOUND" */
public static final int DATA_NOT_FOUND = 100506;
/** 没有命名的错误 */
public static final int UNNAMED_ERROR = 800001;
public static final int USER_ERROR = 800001;
private int iErrorType;
private String sErrorMessage;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -