InnoDB Plugin  1.0
db0err.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1996, 2014, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
26 #ifndef db0err_h
27 #define db0err_h
28 
29 
30 enum dberr_t {
33  DB_SUCCESS = 10,
34 
35  /* The following are error codes */
36  DB_ERROR,
37  DB_INTERRUPTED,
38  DB_OUT_OF_MEMORY,
39  DB_OUT_OF_FILE_SPACE,
40  DB_LOCK_WAIT,
41  DB_DEADLOCK,
42  DB_ROLLBACK,
43  DB_DUPLICATE_KEY,
44  DB_QUE_THR_SUSPENDED,
48  DB_CLUSTER_NOT_FOUND = 30,
49  DB_TABLE_NOT_FOUND,
52  DB_TABLE_IS_BEING_USED,
76  DB_TABLESPACE_NOT_FOUND, /*<! Attempt to delete a tablespace
77  instance that was not found in the
78  tablespace hash table */
120  DB_FTS_INVALID_DOCID, /* FTS Doc ID cannot be zero */
121  DB_TABLE_IN_FK_CHECK, /* table is being used in foreign
122  key check */
131  DB_FTS_TOO_MANY_WORDS_IN_PHRASE,
132  /*< Too many words in a phrase */
133  DB_TOO_BIG_FOR_REDO, /* Record length greater than 10%
134  of redo log */
135  /* The following are partial failure codes */
136  DB_FAIL = 1000,
137  DB_OVERFLOW,
138  DB_UNDERFLOW,
139  DB_STRONG_FAIL,
140  DB_ZIP_OVERFLOW,
141  DB_RECORD_NOT_FOUND = 1500,
142  DB_END_OF_INDEX,
148  /* The following are API only error codes. */
159 };
160 
161 #endif