MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
db0err.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1996, 2012, 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  /* The following are partial failure codes */
132  DB_FAIL = 1000,
133  DB_OVERFLOW,
134  DB_UNDERFLOW,
135  DB_STRONG_FAIL,
136  DB_ZIP_OVERFLOW,
137  DB_RECORD_NOT_FOUND = 1500,
138  DB_END_OF_INDEX,
144  /* The following are API only error codes. */
155 };
156 
157 #endif