MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mgmapi_error.c
1 /*
2  Copyright 2008, 2009 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #include <mgmapi_error.h>
20 
21 const struct Ndb_Mgm_Error_Msg ndb_mgm_error_msgs[] = {
22  { NDB_MGM_NO_ERROR, "No error" },
23 
24  /* Request for service errors */
25  { NDB_MGM_ILLEGAL_CONNECT_STRING, "Illegal connect string" },
26  { NDB_MGM_ILLEGAL_SERVER_HANDLE, "Illegal server handle" },
27  { NDB_MGM_ILLEGAL_SERVER_REPLY, "Illegal reply from server" },
28  { NDB_MGM_ILLEGAL_NUMBER_OF_NODES, "Illegal number of nodes" },
29  { NDB_MGM_ILLEGAL_NODE_STATUS, "Illegal node status" },
30  { NDB_MGM_OUT_OF_MEMORY, "Out of memory" },
31  { NDB_MGM_SERVER_NOT_CONNECTED, "Management server not connected" },
32  { NDB_MGM_COULD_NOT_CONNECT_TO_SOCKET, "Could not connect to socket" },
33 
34  /* Service errors - Start/Stop Node or System */
35  { NDB_MGM_START_FAILED, "Start failed" },
36  { NDB_MGM_STOP_FAILED, "Stop failed" },
37  { NDB_MGM_RESTART_FAILED, "Restart failed" },
38 
39  /* Service errors - Backup */
40  { NDB_MGM_COULD_NOT_START_BACKUP, "Could not start backup" },
41  { NDB_MGM_COULD_NOT_ABORT_BACKUP, "Could not abort backup" },
42 
43  /* Service errors - Single User Mode */
44  { NDB_MGM_COULD_NOT_ENTER_SINGLE_USER_MODE,
45  "Could not enter single user mode" },
46  { NDB_MGM_COULD_NOT_EXIT_SINGLE_USER_MODE,
47  "Could not exit single user mode" },
48 
49  /* Service errors - Configuration change */
50  { NDB_MGM_CONFIG_CHANGE_FAILED,
51  "Failed to complete configuration change" },
52  { NDB_MGM_GET_CONFIG_FAILED,
53  "Failed to get configuration" },
54 
55  /* Usage errors */
56  { NDB_MGM_USAGE_ERROR,
57  "Usage error" }
58 };
59 
60 const int ndb_mgm_noOfErrorMsgs =
61  sizeof(ndb_mgm_error_msgs)/sizeof(struct Ndb_Mgm_Error_Msg);