public static final int DB_ER_NET_READ_ERROR = 1158; //网络错误,出现读错误,请检查网络连接状况
public static final int DB_ER_NET_READ_INTERRUPTED = 1159; //网络错误,读超时,请检查网络连接状况
public static final int DB_ER_NET_ERROR_ON_WRITE = 1160; //网络错误,出现写错误,请检查网络连接状况
public static final int DB_ER_NET_WRITE_INTERRUPTED = 1161; //网络错误,写超时,请检查网络连接状况
public static final int DB_ER_DUP_ENTRY = 1062; //字段值重复,入库失败
public static final int DB_ER_DUP_UNIQUE = 1169; //字段值重复,更新记录失败
public static final int DB_ER_CHECK_NO_SUCH_TABLE = 1177; //打开数据表失败
public static final int DB_ER_ERROR_DURING_COMMIT = 1180; //提交事务失败
public static final int DB_ER_ERROR_DURING_ROLLBACK = 1181; //回滚事务失败
public static final int DB_ER_TOO_MANY_USER_CONNECTIONS = 1203; //当前用户和数据库建立的连接已到达数据库的最大连接数,请增大可用的数据库连接数或重启数据库
public static final int DB_ER_LOCK_WAIT_TIMEOUT = 1205; //加锁超时
public static final int DB_ER_NO_PERMISSION_TO_CREATE_USER = 1211; //当前用户没有创建用户的权限
public static final int DB_ER_NO_REFERENCED_ROW = 1216; //外键约束检查失败,更新子表记录失败
public static final int DB_ER_ROW_IS_REFERENCED = 1217; //外键约束检查失败,删除或修改主表记录失败
public static final int DB_ER_USER_LIMIT_REACHED = 1226; //当前用户使用的资源已超过所允许的资源,请重启数据库或重启服务器
public static final int DB_ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227; //权限不足,您无权进行此操作
public static final int DB_ER_NOT_SUPPORTED_YET = 1235; //MySQL版本过低,不具有本功能
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 ,"数据库已存在,创建数据库失败"),
--转自