import java.util.*;
public class MyErrorContext
{
public static class MyError
{
int errno;
String szErrorDesc;
public MyError(int errno, String errorDesc)
{
this.errno = errno;
this.szErrorDesc = errorDesc;
}
public int getErrorNo()
{
return errno;
}
public String getErrorDesc()
{
return szErrorDesc;
}
}
public static final int DB_ER_CANT_CREATE_TABLE = 1005; //創(chuàng)建表失敗
public static final int DB_ER_CANT_CREATE_DB = 1006; //創(chuàng)建數(shù)據(jù)庫失敗
public static final int DB_ER_DB_CREATE_EXISTS = 1007; //數(shù)據(jù)庫已存在,創(chuàng)建數(shù)據(jù)庫失敗
public static final int DB_ER_DB_DROP_EXISTS = 1008; //數(shù)據(jù)庫不存在,刪除數(shù)據(jù)庫失敗
public static final int DB_ER_DB_DROP_DELETE = 1009; //不能刪除數(shù)據(jù)庫文件導(dǎo)致刪除數(shù)據(jù)庫失敗
public static final int DB_ER_DB_DROP_RMDIR = 1010; //不能刪除數(shù)據(jù)目錄導(dǎo)致刪除數(shù)據(jù)庫失敗
public static final int DB_ER_CANT_DELETE_FILE = 1011; //刪除數(shù)據(jù)庫文件失敗
public static final int DB_ER_CANT_FIND_SYSTEM_REC = 1012; //不能讀取系統(tǒng)表中的記錄
public static final int DB_ER_CHECKREAD = 1020; //記錄已被其他用戶修改
public static final int DB_ER_DISK_FULL = 1021; //硬盤剩余空間不足,請(qǐng)加大硬盤可用空間
public static final int DB_ER_DUP_KEY = 1022; //關(guān)鍵字重復(fù),更改記錄失敗
public static final int DB_ER_ERROR_ON_CLOSE = 1023; //關(guān)閉時(shí)發(fā)生錯(cuò)誤
public static final int DB_ER_ERROR_ON_READ = 1024; //讀文件錯(cuò)誤
public static final int DB_ER_ERROR_ON_RENAME = 1025; //更改名字時(shí)發(fā)生錯(cuò)誤
public static final int DB_ER_ERROR_ON_WRITE = 1026; //寫文件錯(cuò)誤
public static final int DB_ER_KEY_NOT_FOUND = 1032; //記錄不存在
public static final int DB_ER_OPEN_AS_READONLY = 1036; //數(shù)據(jù)表是只讀的,不能對(duì)它進(jìn)行修改
public static final int DB_ER_OUTOFMEMORY = 1037; //系統(tǒng)內(nèi)存不足,請(qǐng)重啟數(shù)據(jù)庫或重啟服務(wù)器
public static final int DB_ER_OUT_OF_SORTMEMORY = 1038; //用于排序的內(nèi)存不足,請(qǐng)?jiān)龃笈判蚓彌_區(qū)
public static final int DB_ER_CON_COUNT_ERROR = 1040; //已到達(dá)數(shù)據(jù)庫的最大連接數(shù),請(qǐng)加大數(shù)據(jù)庫可用連接數(shù)
public static final int DB_ER_OUT_OF_RESOURCES = 1041; //系統(tǒng)內(nèi)存不足
public static final int DB_ER_BAD_HOST_ERROR = 1042; //無效的主機(jī)名
public static final int DB_ER_HANDSHAKE_ERROR = 1043; //無效連接
public static final int DB_ER_DBaccess_DENIED_ERROR = 1044; //當(dāng)前用戶沒有訪問數(shù)據(jù)庫的權(quán)限
public static final int DB_ER_ACCESS_DENIED_ERROR = 1045; //不能連接數(shù)據(jù)庫,用戶名或密碼錯(cuò)誤
public static final int DB_ER_BAD_NULL_ERROR = 1048; //字段不能為空
public static final int DB_ER_BAD_DB_ERROR = 1049; //數(shù)據(jù)庫不存在
public static final int DB_ER_TABLE_EXISTS_ERROR = 1050; //數(shù)據(jù)表已存在
public static final int DB_ER_BAD_TABLE_ERROR = 1051; //數(shù)據(jù)表不存在
public static final int DB_ER_BAD_FIELD_ERROR = 1054; //字段不存在
public static final int DB_ER_EMPTY_QUERY = 1065; //無效的SQL語句,SQL語句為空
public static final int DB_ER_IPSOCK_ERROR = 1081; //不能建立Socket連接
public static final int DB_ER_RECORD_FILE_FULL = 1114; //數(shù)據(jù)表已滿,不能容納任何記錄
public static final int DB_ER_TOO_MANY_TABLES = 1116; //打開的數(shù)據(jù)表太多
public static final int DB_ER_HOST_IS_BLOCKED = 1129; //數(shù)據(jù)庫出現(xiàn)異常,請(qǐng)重啟數(shù)據(jù)庫
public static final int DB_ER_HOST_NOT_PRIVILEGED = 1130; //連接數(shù)據(jù)庫失敗,沒有連接數(shù)據(jù)庫的權(quán)限
public static final int DB_ER_PASSword_NO_MATCH = 1133; //數(shù)據(jù)庫用戶不存在
public static final int DB_ER_NONEXISTING_GRANT = 1141; //當(dāng)前用戶無權(quán)訪問數(shù)據(jù)庫
public static final int DB_ER_TABLEACCESS_DENIED_ERROR = 1142; //當(dāng)前用戶無權(quán)訪問數(shù)據(jù)表
public static final int DB_ER_COLUMNACCESS_DENIED_ERROR = 1143; //當(dāng)前用戶無權(quán)訪問數(shù)據(jù)表中的字段
public static final int DB_ER_NO_SUCH_TABLE = 1146; //數(shù)據(jù)表不存在
public static final int DB_ER_NONEXISTING_TABLE_GRANT = 1147; //未定義用戶對(duì)數(shù)據(jù)表的訪問權(quán)限
public static final int DB_ER_SYNTAX_ERROR = 1149; //SQL語句語法錯(cuò)誤
public static final int DB_ER_NET_READ_ERROR = 1158; //網(wǎng)絡(luò)錯(cuò)誤,出現(xiàn)讀錯(cuò)誤,請(qǐng)檢查網(wǎng)絡(luò)連接狀況
public static final int DB_ER_NET_READ_INTERRUPTED = 1159; //網(wǎng)絡(luò)錯(cuò)誤,讀超時(shí),請(qǐng)檢查網(wǎng)絡(luò)連接狀況
public static final int DB_ER_NET_ERROR_ON_WRITE = 1160; //網(wǎng)絡(luò)錯(cuò)誤,出現(xiàn)寫錯(cuò)誤,請(qǐng)檢查網(wǎng)絡(luò)連接狀況
public static final int DB_ER_NET_WRITE_INTERRUPTED = 1161; //網(wǎng)絡(luò)錯(cuò)誤,寫超時(shí),請(qǐng)檢查網(wǎng)絡(luò)連接狀況
public static final int DB_ER_DUP_ENTRY = 1062; //字段值重復(fù),入庫失敗
public static final int DB_ER_DUP_UNIQUE = 1169; //字段值重復(fù),更新記錄失敗
public static final int DB_ER_CHECK_NO_SUCH_TABLE = 1177; //打開數(shù)據(jù)表失敗
public static final int DB_ER_ERROR_DURING_COMMIT = 1180; //提交事務(wù)失敗
public static final int DB_ER_ERROR_DURING_ROLLBACK = 1181; //回滾事務(wù)失敗
public static final int DB_ER_TOO_MANY_USER_CONNECTIONS = 1203; //當(dāng)前用戶和數(shù)據(jù)庫建立的連接已到達(dá)數(shù)據(jù)庫的最大連接數(shù),請(qǐng)?jiān)龃罂捎玫臄?shù)據(jù)庫連接數(shù)或重啟數(shù)據(jù)庫
public s
關(guān)鍵詞標(biāo)簽:代碼,信息,常見,數(shù)據(jù)庫
相關(guān)閱讀
- 文章評(píng)論
-
熱門文章 10款MySQL數(shù)據(jù)庫客戶端圖形界面管理工具推薦MySQL常用維護(hù)管理工具Linux VPS/服務(wù)器上輕松導(dǎo)入、導(dǎo)出MySQL數(shù)據(jù)MySQL復(fù)制的概述、安裝、故障、技巧、工具
人氣排行 MySQL數(shù)據(jù)庫啟動(dòng)失敗1067進(jìn)程意外終止的解決辦法總結(jié)Mysql 1045錯(cuò)誤解決辦法10款MySQL數(shù)據(jù)庫客戶端圖形界面管理工具推薦MySQL服務(wù)器進(jìn)程CPU占用100%解決辦法MySQL導(dǎo)出導(dǎo)入命令的用例MySQL無法啟動(dòng)、無法停止各種解決方法總結(jié)三種常用的MySQL建表語句Mysql清空表的實(shí)現(xiàn)方法
- 關(guān)于我們| 下載幫助| 下載聲明| 版權(quán)聲明| 合作伙伴| 廣告服務(wù)| 友情連接| 聯(lián)系我們| 網(wǎng)站地圖
- Copyright © 2006-2021 綠軟下載站(ygkjgt7.cn)All Rights Reserved
- 備案編號(hào):鄂ICP備11008024號(hào)