KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mysql > jdbc > MysqlErrorNumbers


1 /*
2  Copyright (C) 2002-2004 MySQL AB
3
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of version 2 of the GNU General Public License as
6  published by the Free Software Foundation.
7
8  There are special exceptions to the terms and conditions of the GPL
9  as it is applied to this software. View the full text of the
10  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this
11  software distribution.
12
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
22
23  
24  */

25 package com.mysql.jdbc;
26
27 /**
28  * Constants representing MySQL error numbers returned by the server in error
29  * messages.
30  *
31  * @author Mark Matthews
32  *
33  * @version $Id: MysqlErrorNumbers.java,v 1.1.2.1 2005/05/13 18:58:38 mmatthews
34  * Exp $
35  */

36 public final class MysqlErrorNumbers {
37
38     public final static int ER_ABORTING_CONNECTION = 1152;
39
40     public final static int ER_ACCESS_DENIED_ERROR = 1045;
41
42     public final static int ER_ALTER_INFO = 1088;
43
44     public final static int ER_AUTO_CONVERT = 1246;
45
46     public final static int ER_BAD_DB_ERROR = 1049;
47
48     public final static int ER_BAD_FIELD_ERROR = 1054;
49
50     public final static int ER_BAD_FT_COLUMN = 1283;
51
52     public final static int ER_BAD_HOST_ERROR = 1042;
53
54     public final static int ER_BAD_NULL_ERROR = 1048;
55
56     public final static int ER_BAD_SLAVE = 1200;
57
58     public final static int ER_BAD_SLAVE_UNTIL_COND = 1277;
59
60     public final static int ER_BAD_TABLE_ERROR = 1051;
61
62     public final static int ER_BLOB_CANT_HAVE_DEFAULT = 1101;
63
64     public final static int ER_BLOB_KEY_WITHOUT_LENGTH = 1170;
65
66     public final static int ER_BLOB_USED_AS_KEY = 1073;
67
68     public final static int ER_BLOBS_AND_NO_TERMINATED = 1084;
69
70     public final static int ER_CANNOT_ADD_FOREIGN = 1215;
71
72     public final static int ER_CANT_AGGREGATE_2COLLATIONS = 1267;
73
74     public final static int ER_CANT_AGGREGATE_3COLLATIONS = 1270;
75
76     public final static int ER_CANT_AGGREGATE_NCOLLATIONS = 1271;
77
78     public final static int ER_CANT_CREATE_DB = 1006;
79
80     public final static int ER_CANT_CREATE_FILE = 1004;
81
82     public final static int ER_CANT_CREATE_TABLE = 1005;
83
84     public final static int ER_CANT_CREATE_THREAD = 1135;
85
86     public final static int ER_CANT_DELETE_FILE = 1011;
87
88     public final static int ER_CANT_DO_THIS_DURING_AN_TRANSACTION = 1179;
89
90     public final static int ER_CANT_DROP_FIELD_OR_KEY = 1091;
91
92     public final static int ER_CANT_FIND_DL_ENTRY = 1127;
93
94     public final static int ER_CANT_FIND_SYSTEM_REC = 1012;
95
96     public final static int ER_CANT_FIND_UDF = 1122;
97
98     public final static int ER_CANT_GET_STAT = 1013;
99
100     public final static int ER_CANT_GET_WD = 1014;
101
102     public final static int ER_CANT_INITIALIZE_UDF = 1123;
103
104     public final static int ER_CANT_LOCK = 1015;
105
106     public final static int ER_CANT_OPEN_FILE = 1016;
107
108     public final static int ER_CANT_OPEN_LIBRARY = 1126;
109
110     public final static int ER_CANT_READ_DIR = 1018;
111
112     public final static int ER_CANT_REMOVE_ALL_FIELDS = 1090;
113
114     public final static int ER_CANT_REOPEN_TABLE = 1137;
115
116     public final static int ER_CANT_SET_WD = 1019;
117
118     public final static int ER_CANT_UPDATE_WITH_READLOCK = 1223;
119
120     public final static int ER_CANT_USE_OPTION_HERE = 1234;
121
122     public final static int ER_CHECK_NO_SUCH_TABLE = 1177;
123
124     public final static int ER_CHECK_NOT_IMPLEMENTED = 1178;
125
126     public final static int ER_CHECKREAD = 1020;
127
128     public final static int ER_COLLATION_CHARSET_MISMATCH = 1253;
129
130     public final static int ER_COLUMNACCESS_DENIED_ERROR = 1143;
131
132     public final static int ER_CON_COUNT_ERROR = 1040;
133
134     public final static int ER_CONNECT_TO_MASTER = 1218;
135
136     public final static int ER_CORRUPT_HELP_DB = 1244;
137
138     public final static int ER_CRASHED_ON_REPAIR = 1195;
139
140     public final static int ER_CRASHED_ON_USAGE = 1194;
141
142     public final static int ER_CREATE_DB_WITH_READ_LOCK = 1209;
143
144     public final static int ER_CUT_VALUE_GROUP_CONCAT = 1260;
145
146     public final static int ER_CYCLIC_REFERENCE = 1245;
147
148     public final static int ER_DB_CREATE_EXISTS = 1007;
149
150     public final static int ER_DB_DROP_DELETE = 1009;
151
152     public final static int ER_DB_DROP_EXISTS = 1008;
153
154     public final static int ER_DB_DROP_RMDIR = 1010;
155
156     public final static int ER_DBACCESS_DENIED_ERROR = 1044;
157
158     public final static int ER_DELAYED_CANT_CHANGE_LOCK = 1150;
159
160     public final static int ER_DELAYED_INSERT_TABLE_LOCKED = 1165;
161
162     public final static int ER_DERIVED_MUST_HAVE_ALIAS = 1248;
163
164     public final static int ER_DISK_FULL = 1021;
165
166     public final static int ER_DROP_DB_WITH_READ_LOCK = 1208;
167
168     public final static int ER_DROP_USER = 1268;
169
170     public final static int ER_DUMP_NOT_IMPLEMENTED = 1185;
171
172     public final static int ER_DUP_ARGUMENT = 1225;
173
174     public final static int ER_DUP_ENTRY = 1062;
175
176     public final static int ER_DUP_FIELDNAME = 1060;
177
178     public final static int ER_DUP_KEY = 1022;
179
180     public final static int ER_DUP_KEYNAME = 1061;
181
182     public final static int ER_DUP_UNIQUE = 1169;
183
184     public final static int ER_DUPLICATED_VALUE_IN_TYPE = 1291;
185
186     public final static int ER_EMPTY_QUERY = 1065;
187
188     public final static int ER_ERROR_DURING_CHECKPOINT = 1183;
189
190     public final static int ER_ERROR_DURING_COMMIT = 1180;
191
192     public final static int ER_ERROR_DURING_FLUSH_LOGS = 1182;
193
194     public final static int ER_ERROR_DURING_ROLLBACK = 1181;
195
196     public final static int ER_ERROR_MESSAGES = 298;
197
198     public final static int ER_ERROR_ON_CLOSE = 1023;
199
200     public final static int ER_ERROR_ON_READ = 1024;
201
202     public final static int ER_ERROR_ON_RENAME = 1025;
203
204     public final static int ER_ERROR_ON_WRITE = 1026;
205
206     public final static int ER_ERROR_WHEN_EXECUTING_COMMAND = 1220;
207
208     public final static int ER_FEATURE_DISABLED = 1289;
209
210     public final static int ER_FIELD_SPECIFIED_TWICE = 1110;
211
212     public final static int ER_FILE_EXISTS_ERROR = 1086;
213
214     public final static int ER_FILE_NOT_FOUND = 1017;
215
216     public final static int ER_FILE_USED = 1027;
217
218     public final static int ER_FILSORT_ABORT = 1028;
219
220     public final static int ER_FLUSH_MASTER_BINLOG_CLOSED = 1186;
221
222     public final static int ER_FORCING_CLOSE = 1080;
223
224     public final static int ER_FORM_NOT_FOUND = 1029;
225
226     public final static int ER_FT_MATCHING_KEY_NOT_FOUND = 1191;
227
228     public final static int ER_FUNCTION_NOT_DEFINED = 1128;
229
230     public final static int ER_GET_ERRMSG = 1296;
231
232     public final static int ER_GET_ERRNO = 1030;
233
234     public final static int ER_GET_TEMPORARY_ERRMSG = 1297;
235
236     public final static int ER_GLOBAL_VARIABLE = 1229;
237
238     public final static int ER_GOT_SIGNAL = 1078;
239
240     public final static int ER_GRANT_WRONG_HOST_OR_USER = 1145;
241
242     public final static int ER_HANDSHAKE_ERROR = 1043;
243
244     public final static int ER_HASHCHK = 1000;
245
246     public final static int ER_HOST_IS_BLOCKED = 1129;
247
248     public final static int ER_HOST_NOT_PRIVILEGED = 1130;
249
250     public final static int ER_ILLEGAL_GRANT_FOR_TABLE = 1144;
251
252     public final static int ER_ILLEGAL_HA = 1031;
253
254     public final static int ER_ILLEGAL_REFERENCE = 1247;
255
256     public final static int ER_INCORRECT_GLOBAL_LOCAL_VAR = 1238;
257
258     public final static int ER_INDEX_REBUILD = 1187;
259
260     public final static int ER_INSERT_INFO = 1092;
261
262     public final static int ER_INVALID_DEFAULT = 1067;
263
264     public final static int ER_INVALID_GROUP_FUNC_USE = 1111;
265
266     public final static int ER_INVALID_ON_UPDATE = 1294;
267
268     public final static int ER_INVALID_USE_OF_NULL = 1138;
269
270     public final static int ER_IPSOCK_ERROR = 1081;
271
272     public final static int ER_KEY_COLUMN_DOES_NOT_EXITS = 1072;
273
274     public final static int ER_KEY_DOES_NOT_EXITS = 1176;
275
276     public final static int ER_KEY_NOT_FOUND = 1032;
277
278     public final static int ER_KEY_REF_DO_NOT_MATCH_TABLE_REF = 1240;
279
280     public final static int ER_KILL_DENIED_ERROR = 1095;
281
282     public final static int ER_LOAD_INFO = 1087;
283
284     public final static int ER_LOCAL_VARIABLE = 1228;
285
286     public final static int ER_LOCK_DEADLOCK = 1213;
287
288     public final static int ER_LOCK_OR_ACTIVE_TRANSACTION = 1192;
289
290     public final static int ER_LOCK_TABLE_FULL = 1206;
291
292     public final static int ER_LOCK_WAIT_TIMEOUT = 1205;
293
294     public final static int ER_MASTER = 1188;
295
296     public final static int ER_MASTER_FATAL_ERROR_READING_BINLOG = 1236;
297
298     public final static int ER_MASTER_INFO = 1201;
299
300     public final static int ER_MASTER_NET_READ = 1189;
301
302     public final static int ER_MASTER_NET_WRITE = 1190;
303
304     public final static int ER_MISSING_SKIP_SLAVE = 1278;
305
306     public final static int ER_MIX_OF_GROUP_FUNC_AND_FIELDS = 1140;
307
308     public final static int ER_MIXING_NOT_ALLOWED = 1224;
309
310     public final static int ER_MULTIPLE_PRI_KEY = 1068;
311
312     public final static int ER_NET_ERROR_ON_WRITE = 1160;
313
314     public final static int ER_NET_FCNTL_ERROR = 1155;
315
316     public final static int ER_NET_PACKET_TOO_LARGE = 1153;
317
318     public final static int ER_NET_PACKETS_OUT_OF_ORDER = 1156;
319
320     public final static int ER_NET_READ_ERROR = 1158;
321
322     public final static int ER_NET_READ_ERROR_FROM_PIPE = 1154;
323
324     public final static int ER_NET_READ_INTERRUPTED = 1159;
325
326     public final static int ER_NET_UNCOMPRESS_ERROR = 1157;
327
328     public final static int ER_NET_WRITE_INTERRUPTED = 1161;
329
330     public final static int ER_NEW_ABORTING_CONNECTION = 1184;
331
332     public final static int ER_NISAMCHK = 1001;
333
334     public final static int ER_NO = 1002;
335
336     public final static int ER_NO_DB_ERROR = 1046;
337
338     public final static int ER_NO_DEFAULT = 1230;
339
340     public final static int ER_NO_PERMISSION_TO_CREATE_USER = 1211;
341
342     public final static int ER_NO_RAID_COMPILED = 1174;
343
344     public final static int ER_NO_REFERENCED_ROW = 1216;
345
346     public final static int ER_NO_SUCH_INDEX = 1082;
347
348     public final static int ER_NO_SUCH_TABLE = 1146;
349
350     public final static int ER_NO_SUCH_THREAD = 1094;
351
352     public final static int ER_NO_TABLES_USED = 1096;
353
354     public final static int ER_NO_UNIQUE_LOGFILE = 1098;
355
356     public final static int ER_NON_UNIQ_ERROR = 1052;
357
358     public final static int ER_NON_UPDATABLE_TABLE = 1288;
359
360     public final static int ER_NONEXISTING_GRANT = 1141;
361
362     public final static int ER_NONEXISTING_TABLE_GRANT = 1147;
363
364     public final static int ER_NONUNIQ_TABLE = 1066;
365
366     public final static int ER_NORMAL_SHUTDOWN = 1077;
367
368     public final static int ER_NOT_ALLOWED_COMMAND = 1148;
369
370     public final static int ER_NOT_FORM_FILE = 1033;
371
372     public final static int ER_NOT_KEYFILE = 1034;
373
374     public final static int ER_NOT_SUPPORTED_AUTH_MODE = 1251;
375
376     public final static int ER_NOT_SUPPORTED_YET = 1235;
377
378     public final static int ER_NULL_COLUMN_IN_INDEX = 1121;
379
380     public final static int ER_OLD_KEYFILE = 1035;
381
382     public final static int ER_OPEN_AS_READONLY = 1036;
383
384     public final static int ER_OPERAND_COLUMNS = 1241;
385
386     public final static int ER_OPTION_PREVENTS_STATEMENT = 1290;
387
388     public final static int ER_OUT_OF_RESOURCES = 1041;
389
390     public final static int ER_OUT_OF_SORTMEMORY = 1038;
391
392     public final static int ER_OUTOFMEMORY = 1037;
393
394     public final static int ER_PARSE_ERROR = 1064;
395
396     public final static int ER_PASSWORD_ANONYMOUS_USER = 1131;
397
398     public final static int ER_PASSWORD_NO_MATCH = 1133;
399
400     public final static int ER_PASSWORD_NOT_ALLOWED = 1132;
401
402     public final static int ER_PRIMARY_CANT_HAVE_NULL = 1171;
403
404     public final static int ER_QUERY_ON_MASTER = 1219;
405
406     public final static int ER_READ_ONLY_TRANSACTION = 1207;
407
408     public final static int ER_READY = 1076;
409
410     public final static int ER_RECORD_FILE_FULL = 1114;
411
412     public final static int ER_REGEXP_ERROR = 1139;
413
414     public final static int ER_REQUIRES_PRIMARY_KEY = 1173;
415
416     public final static int ER_REVOKE_GRANTS = 1269;
417
418     public final static int ER_ROW_IS_REFERENCED = 1217;
419
420     public final static int ER_SELECT_REDUCED = 1249;
421
422     public final static int ER_SERVER_IS_IN_SECURE_AUTH_MODE = 1275;
423
424     public final static int ER_SERVER_SHUTDOWN = 1053;
425
426     public final static int ER_SET_CONSTANTS_ONLY = 1204;
427
428     public final static int ER_SHUTDOWN_COMPLETE = 1079;
429
430     public final static int ER_SLAVE_IGNORED_SSL_PARAMS = 1274;
431
432     public final static int ER_SLAVE_IGNORED_TABLE = 1237;
433
434     public final static int ER_SLAVE_MUST_STOP = 1198;
435
436     public final static int ER_SLAVE_NOT_RUNNING = 1199;
437
438     public final static int ER_SLAVE_THREAD = 1202;
439
440     public final static int ER_SLAVE_WAS_NOT_RUNNING = 1255;
441
442     public final static int ER_SLAVE_WAS_RUNNING = 1254;
443
444     public final static int ER_SPATIAL_CANT_HAVE_NULL = 1252;
445
446     public final static int ER_SPECIFIC_ACCESS_DENIED_ERROR = 1227;
447
448     public final static int ER_STACK_OVERRUN = 1119;
449
450     public final static int ER_SUBQUERY_NO_1_ROW = 1242;
451
452     public final static int ER_SYNTAX_ERROR = 1149;
453
454     public final static int ER_TABLE_CANT_HANDLE_AUTO_INCREMENT = 1164;
455
456     public final static int ER_TABLE_CANT_HANDLE_BLOB = 1163;
457
458     public final static int ER_TABLE_CANT_HANDLE_FT = 1214;
459
460     public final static int ER_TABLE_EXISTS_ERROR = 1050;
461
462     public final static int ER_TABLE_MUST_HAVE_COLUMNS = 1113;
463
464     public final static int ER_TABLE_NOT_LOCKED = 1100;
465
466     public final static int ER_TABLE_NOT_LOCKED_FOR_WRITE = 1099;
467
468     public final static int ER_TABLEACCESS_DENIED_ERROR = 1142;
469
470     public final static int ER_TABLENAME_NOT_ALLOWED_HERE = 1250;
471
472     public final static int ER_TEXTFILE_NOT_READABLE = 1085;
473
474     public final static int ER_TOO_BIG_FIELDLENGTH = 1074;
475
476     public final static int ER_TOO_BIG_FOR_UNCOMPRESS = 1256;
477
478     public final static int ER_TOO_BIG_ROWSIZE = 1118;
479
480     public final static int ER_TOO_BIG_SELECT = 1104;
481
482     public final static int ER_TOO_BIG_SET = 1097;
483
484     public final static int ER_TOO_LONG_IDENT = 1059;
485
486     public final static int ER_TOO_LONG_KEY = 1071;
487
488     public final static int ER_TOO_LONG_STRING = 1162;
489
490     public final static int ER_TOO_MANY_DELAYED_THREADS = 1151;
491
492     public final static int ER_TOO_MANY_FIELDS = 1117;
493
494     public final static int ER_TOO_MANY_KEY_PARTS = 1070;
495
496     public final static int ER_TOO_MANY_KEYS = 1069;
497
498     public final static int ER_TOO_MANY_ROWS = 1172;
499
500     public final static int ER_TOO_MANY_TABLES = 1116;
501
502     public final static int ER_TOO_MANY_USER_CONNECTIONS = 1203;
503
504     public final static int ER_TOO_MUCH_AUTO_TIMESTAMP_COLS = 1293;
505
506     public final static int ER_TRANS_CACHE_FULL = 1197;
507
508     public final static int ER_TRUNCATED_WRONG_VALUE = 1292;
509
510     public final static int ER_UDF_EXISTS = 1125;
511
512     public final static int ER_UDF_NO_PATHS = 1124;
513
514     public final static int ER_UNEXPECTED_EOF = 1039;
515
516     public final static int ER_UNION_TABLES_IN_DIFFERENT_DIR = 1212;
517
518     public final static int ER_UNKNOWN_CHARACTER_SET = 1115;
519
520     public final static int ER_UNKNOWN_COLLATION = 1273;
521
522     public final static int ER_UNKNOWN_COM_ERROR = 1047;
523
524     public final static int ER_UNKNOWN_ERROR = 1105;
525
526     public final static int ER_UNKNOWN_KEY_CACHE = 1284;
527
528     public final static int ER_UNKNOWN_PROCEDURE = 1106;
529
530     public final static int ER_UNKNOWN_STMT_HANDLER = 1243;
531
532     public final static int ER_UNKNOWN_STORAGE_ENGINE = 1286;
533
534     public final static int ER_UNKNOWN_SYSTEM_VARIABLE = 1193;
535
536     public final static int ER_UNKNOWN_TABLE = 1109;
537
538     public final static int ER_UNSUPPORTED_EXTENSION = 1112;
539
540     public final static int ER_UNSUPPORTED_PS = 1295;
541
542     public final static int ER_UNTIL_COND_IGNORED = 1279;
543
544     public final static int ER_UPDATE_INFO = 1134;
545
546     public final static int ER_UPDATE_TABLE_USED = 1093;
547
548     public final static int ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE = 1175;
549
550     public final static int ER_USER_LIMIT_REACHED = 1226;
551
552     public final static int ER_VAR_CANT_BE_READ = 1233;
553
554     public final static int ER_VARIABLE_IS_NOT_STRUCT = 1272;
555
556     public final static int ER_WARN_DATA_OUT_OF_RANGE = 1264;
557
558     public final static int ER_WARN_DATA_TRUNCATED = 1265;
559
560     public final static int ER_WARN_DEPRECATED_SYNTAX = 1287;
561
562     public final static int ER_WARN_FIELD_RESOLVED = 1276;
563
564     public final static int ER_WARN_HOSTNAME_WONT_WORK = 1285;
565
566     public final static int ER_WARN_NULL_TO_NOTNULL = 1263;
567
568     public final static int ER_WARN_QC_RESIZE = 1282;
569
570     public final static int ER_WARN_TOO_FEW_RECORDS = 1261;
571
572     public final static int ER_WARN_TOO_MANY_RECORDS = 1262;
573
574     public final static int ER_WARN_USING_OTHER_HANDLER = 1266;
575
576     public final static int ER_WARNING_NOT_COMPLETE_ROLLBACK = 1196;
577
578     public final static int ER_WRONG_ARGUMENTS = 1210;
579
580     public final static int ER_WRONG_AUTO_KEY = 1075;
581
582     public final static int ER_WRONG_COLUMN_NAME = 1166;
583
584     public final static int ER_WRONG_DB_NAME = 1102;
585
586     public final static int ER_WRONG_FIELD_SPEC = 1063;
587
588     public final static int ER_WRONG_FIELD_TERMINATORS = 1083;
589
590     public final static int ER_WRONG_FIELD_WITH_GROUP = 1055;
591
592     public final static int ER_WRONG_FK_DEF = 1239;
593
594     public final static int ER_WRONG_GROUP_FIELD = 1056;
595
596     public final static int ER_WRONG_KEY_COLUMN = 1167;
597
598     public final static int ER_WRONG_MRG_TABLE = 1168;
599
600     public final static int ER_WRONG_NAME_FOR_CATALOG = 1281;
601
602     public final static int ER_WRONG_NAME_FOR_INDEX = 1280;
603
604     public final static int ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT = 1222;
605
606     public final static int ER_WRONG_OUTER_JOIN = 1120;
607
608     public final static int ER_WRONG_PARAMCOUNT_TO_PROCEDURE = 1107;
609
610     public final static int ER_WRONG_PARAMETERS_TO_PROCEDURE = 1108;
611
612     public final static int ER_WRONG_SUB_KEY = 1089;
613
614     public final static int ER_WRONG_SUM_SELECT = 1057;
615
616     public final static int ER_WRONG_TABLE_NAME = 1103;
617
618     public final static int ER_WRONG_TYPE_FOR_VAR = 1232;
619
620     public final static int ER_WRONG_USAGE = 1221;
621
622     public final static int ER_WRONG_VALUE_COUNT = 1058;
623
624     public final static int ER_WRONG_VALUE_COUNT_ON_ROW = 1136;
625
626     public final static int ER_WRONG_VALUE_FOR_VAR = 1231;
627
628     public final static int ER_YES = 1003;
629
630     public final static int ER_ZLIB_Z_BUF_ERROR = 1258;
631
632     public final static int ER_ZLIB_Z_DATA_ERROR = 1259;
633
634     public final static int ER_ZLIB_Z_MEM_ERROR = 1257;
635
636     private MysqlErrorNumbers() {
637         // prevent instantiation
638
}
639 }
640
Popular Tags