1 /* Copyright (c) 2015, 2021, Oracle and/or its affiliates.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation.  The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
22 
23 
24 #ifndef _XPL_ERROR_H_
25 #define _XPL_ERROR_H_
26 
27 #define ER_X_SERVICE_ERROR               5010
28 #define ER_X_SESSION                     5011
29 #define ER_X_INVALID_ARGUMENT            5012
30 #define ER_X_MISSING_ARGUMENT            5013
31 #define ER_X_BAD_INSERT_DATA             5014
32 #define ER_X_CMD_NUM_ARGUMENTS           5015
33 #define ER_X_CMD_ARGUMENT_TYPE           5016
34 #define ER_X_CMD_ARGUMENT_VALUE          5017
35 
36 #define ER_X_BAD_UPDATE_DATA             5050
37 #define ER_X_BAD_TYPE_OF_UPDATE          5051
38 #define ER_X_BAD_COLUMN_TO_UPDATE        5052
39 #define ER_X_BAD_MEMBER_TO_UPDATE        5053
40 
41 #define ER_X_BAD_STATEMENT_ID            5110
42 #define ER_X_BAD_CURSOR_ID               5111
43 #define ER_X_BAD_SCHEMA                  5112
44 #define ER_X_BAD_TABLE                   5113
45 #define ER_X_BAD_PROJECTION              5114
46 #define ER_X_DOC_ID_MISSING              5115
47 #define ER_X_DOC_ID_DUPLICATE            5116
48 #define ER_X_DOC_REQUIRED_FIELD_MISSING  5117
49 
50 #define ER_X_PROJ_BAD_KEY_NAME           5120
51 #define ER_X_BAD_DOC_PATH                5121
52 #define ER_X_CURSOR_EXISTS               5122
53 
54 #define ER_X_EXPR_BAD_OPERATOR           5150
55 #define ER_X_EXPR_BAD_NUM_ARGS           5151
56 #define ER_X_EXPR_MISSING_ARG            5152
57 #define ER_X_EXPR_BAD_TYPE_VALUE         5153
58 #define ER_X_EXPR_BAD_VALUE              5154
59 
60 #define ER_X_INVALID_COLLECTION          5156
61 #define ER_X_INVALID_ADMIN_COMMAND       5157
62 #define ER_X_EXPECT_NOT_OPEN             5158
63 #define ER_X_EXPECT_FAILED               5159
64 
65 #define ER_X_EXPECT_BAD_CONDITION        5160
66 #define ER_X_EXPECT_BAD_CONDITION_VALUE  5161
67 #define ER_X_INVALID_NAMESPACE           5162
68 #define ER_X_BAD_NOTICE                  5163
69 #define ER_X_CANNOT_DISABLE_NOTICE       5164
70 #define ER_X_BAD_CONFIGURATION           5165
71 #define ER_X_MYSQLX_ACCOUNT_MISSING_PERMISSIONS 5167
72 
73 #endif // _XPL_ERROR_H_
74