mysqlx_error.h 3.1 KB

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