public static final int DB_ER_NONEXISTING_TABLE_GRANT =
public static final int DB_ER_SYNTAX_ERROR =
public static final int DB_ER_NET_READ_ERROR =
public static final int DB_ER_NET_READ_INTERRUPTED =
public static final int DB_ER_NET_ERROR_ON_WRITE =
public static final int DB_ER_NET_WRITE_INTERRUPTED =
public static final int DB_ER_DUP_ENTRY =
public static final int DB_ER_DUP_UNIQUE =
public static final int DB_ER_CHECK_NO_SUCH_TABLE =
public static final int DB_ER_ERROR_DURING_COMMIT =
public static final int DB_ER_ERROR_DURING_ROLLBACK =
public static final int DB_ER_TOO_MANY_USER_CONNECTIONS =
public static final int DB_ER_LOCK_WAIT_TIMEOUT =
public static final int DB_ER_NO_PERMISSION_TO_CREATE_USER =
public static final int DB_ER_NO_REFERENCED_ROW =
public static final int DB_ER_ROW_IS_REFERENCED =
public static final int DB_ER_USER_LIMIT_REACHED =
public static final int DB_ER_SPECIFIC_ACCESS_DENIED_ERROR =
public static final int DB_ER_NOT_SUPPORTED_YET =
private static final MyError[] errormap =
{
new MyError(DB_ER_CANT_CREATE_TABLE
new MyError(DB_ER_CANT_CREATE_DB
new MyError(DB_ER_DB_CREATE_EXISTS
new MyError(DB_ER_DB_DROP_EXISTS
new MyError(DB_ER_DB_DROP_DELETE
new MyError(DB_ER_DB_DROP_RMDIR
new MyError(DB_ER_CANT_DELETE_FILE
new MyError(DB_ER_CANT_FIND_SYSTEM_REC
new MyError(DB_ER_CHECKREAD
new MyError(DB_ER_DISK_FULL
new MyError(DB_ER_DUP_KEY
new MyError(DB_ER_ERROR_ON_CLOSE
new MyError(DB_ER_ERROR_ON_READ
new MyError(DB_ER_ERROR_ON_RENAME
new MyError(DB_ER_ERROR_ON_WRITE
new MyError(DB_ER_KEY_NOT_FOUND
[
From:http://tw.wingwit.com/Article/program/MySQL/201311/29666.html