new MyError(DB_ER_TOO_MANY_USER_CONNECTIONS
new MyError(DB_ER_LOCK_WAIT_TIMEOUT
new MyError(DB_ER_NO_PERMISSION_TO_CREATE_USER
new MyError(DB_ER_NO_REFERENCED_ROW
new MyError(DB_ER_ROW_IS_REFERENCED
new MyError(DB_ER_USER_LIMIT_REACHED
new MyError(DB_ER_SPECIFIC_ACCESS_DENIED_ERROR
new MyError(DB_ER_NOT_SUPPORTED_YET
};
public static String getErrorInfo(int errno)
{
for(int i=
if(errno == errormap[i]
{
return errormap[i]
}
}
return
}
public static void main(String[] args)
{
for(int i=
System
}
}
}
[
From:http://tw.wingwit.com/Article/program/MySQL/201311/29668.html