my_handler_errors.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #ifndef MYSYS_MY_HANDLER_ERRORS_INCLUDED
  2. #define MYSYS_MY_HANDLER_ERRORS_INCLUDED
  3. /* Copyright (c) 2008, 2013, Oracle and/or its affiliates.
  4. Copyright (c) 2011, 2013, SkySQL Ab.
  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. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software Foundation,
  14. Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
  15. /*
  16. Errors a handler can give you
  17. */
  18. static const char *handler_error_messages[]=
  19. {
  20. "Didn't find key on read or update",
  21. "Duplicate key on write or update",
  22. "Internal (unspecified) error in handler",
  23. "Someone has changed the row since it was read (while the table was locked to prevent it)",
  24. "Wrong index given to function",
  25. "Undefined handler error 125",
  26. "Index file is crashed",
  27. "Record file is crashed",
  28. "Out of memory in engine",
  29. "Undefined handler error 129",
  30. "Incorrect file format",
  31. "Command not supported by database",
  32. "Old database file",
  33. "No record read before update",
  34. "Record was already deleted (or record file crashed)",
  35. "No more room in record file",
  36. "No more room in index file",
  37. "No more records (read after end of file)",
  38. "Unsupported extension used for table",
  39. "Too big row",
  40. "Wrong create options",
  41. "Duplicate unique key or constraint on write or update",
  42. "Unknown character set used in table",
  43. "Conflicting table definitions in sub-tables of MERGE table",
  44. "Table is crashed and last repair failed",
  45. "Table was marked as crashed and should be repaired",
  46. "Lock timed out; Retry transaction",
  47. "Lock table is full; Restart program with a larger lock table",
  48. "Updates are not allowed under a read only transactions",
  49. "Lock deadlock; Retry transaction",
  50. "Foreign key constraint is incorrectly formed",
  51. "Cannot add a child row",
  52. "Cannot delete a parent row",
  53. "No savepoint with that name",
  54. "Non unique key block size",
  55. "The table does not exist in engine",
  56. "The table already existed in storage engine",
  57. "Could not connect to storage engine",
  58. "Unexpected null pointer found when using spatial index",
  59. "The table changed in storage engine",
  60. "There's no partition in table for the given value",
  61. "Row-based binary logging of row failed",
  62. "Index needed in foreign key constraint",
  63. "Upholding foreign key constraints would lead to a duplicate key error in some other table",
  64. "Table needs to be upgraded before it can be used",
  65. "Table is read only",
  66. "Failed to get next auto increment value",
  67. "Failed to set row auto increment value",
  68. "Unknown (generic) error from engine",
  69. "Record was not update. Original values was same as new values",
  70. "It is not possible to log this statement",
  71. "The event was corrupt, leading to illegal data being read",
  72. "The table is of a new format not supported by this version",
  73. "The event could not be processed. No other handler error happened",
  74. "Got a fatal error during initialization of handler",
  75. "File too short; Expected more data in file",
  76. "Read page with wrong checksum",
  77. "Too many active concurrent transactions",
  78. "Record not matching the given partition set",
  79. "Index column length exceeds limit",
  80. "Index corrupted",
  81. "Undo record too big",
  82. "Invalid InnoDB FTS Doc ID",
  83. "Table is being used in foreign key check",
  84. "Tablespace already exists",
  85. "Too many columns",
  86. "Row in wrong partition",
  87. "Row is not visible by the current transaction",
  88. "Operation was interrupted by end user (probably kill command?)",
  89. "Disk full",
  90. "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this",
  91. "Too many words in a FTS phrase or proximity search",
  92. "Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match."
  93. };
  94. #endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */