MySQL 8.0.40
Source Code Documentation
my_handler_errors.h
Go to the documentation of this file.
1#ifndef MYSYS_MY_HANDLER_ERRORS_INCLUDED
2#define MYSYS_MY_HANDLER_ERRORS_INCLUDED
3
4/* Copyright (c) 2008, 2024, Oracle and/or its affiliates.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License, version 2.0,
8 as published by the Free Software Foundation.
9
10 This program is designed to work with certain software (including
11 but not limited to OpenSSL) that is licensed under separate terms,
12 as designated in a particular file or component or in included license
13 documentation. The authors of MySQL hereby grant you an additional
14 permission to link the program and your derivative works with the
15 separately licensed software that they have either included with
16 the program or referenced in the documentation.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License, version 2.0, for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
26
27/**
28 @file mysys/my_handler_errors.h
29*/
30
31/**
32 Errors a handler can give you
33*/
34
35// clang-format off
36// We do not want to break long lines below,
37// clang Wstring-concatenation may break the build.
38static const char *handler_error_messages[] = {
39 "Didn't find key on read or update",
40 "Duplicate key on write or update",
41 "Internal (unspecified) error in handler",
42 "Someone has changed the row since it was read (while the table was locked to prevent it)",
43 "Wrong index given to function",
44 "Transaction has been rolled back",
45 "Index file is crashed",
46 "Record file is crashed",
47 "Out of memory in engine",
48 "Undefined handler error 129",
49 "Incorrect file format",
50 "Command not supported by database",
51 "Old database file",
52 "No record read before update",
53 "Record was already deleted (or record file crashed)",
54 "No more room in record file",
55 "No more room in index file",
56 "No more records (read after end of file)",
57 "Unsupported extension used for table",
58 "Too big row",
59 "Wrong create options",
60 "Duplicate unique key or constraint on write or update",
61 "Unknown character set used in table",
62 "Conflicting table definitions in sub-tables of MERGE table",
63 "Table is crashed and last repair failed",
64 "Table was marked as crashed and should be repaired",
65 "Lock timed out; Retry transaction",
66 "Lock table is full; Restart program with a larger locktable",
67 "Updates are not allowed under a read only transactions",
68 "Lock deadlock; Retry transaction",
69 "Foreign key constraint is incorrectly formed",
70 "Cannot add a child row",
71 "Cannot delete a parent row",
72 "No savepoint with that name",
73 "Non unique key block size",
74 "The table does not exist in engine",
75 "The table already existed in storage engine",
76 "Could not connect to storage engine",
77 "Unexpected null pointer found when using spatial index",
78 "The table changed in storage engine",
79 "There's no partition in table for the given value",
80 "Row-based binlogging of row failed",
81 "Index needed in foreign key constraint",
82 "Upholding foreign key constraints would lead to a duplicate key error in some other table",
83 "Table needs to be upgraded before it can be used",
84 "Table is read only",
85 "Failed to get next auto increment value",
86 "Failed to set row auto increment value",
87 "Unknown (generic) error from engine",
88 "Record is the same",
89 "It is not possible to log this statement",
90 "The event was corrupt, leading to illegal data being read",
91 "The table is of a new format not supported by this version",
92 "The event could not be processed no other hanlder error happened",
93 "Got a fatal error during initialization of handler",
94 "File too short; Expected more data in file",
95 "Read page with wrong checksum",
96 "Too many active concurrent transactions",
97 "Record not matching the given partition set",
98 "Index column length exceeds limit",
99 "Index corrupted",
100 "Undo record too big",
101 "Invalid InnoDB FTS Doc ID",
102 "Table is being used in foreign key check",
103 "Tablespace already exists",
104 "Too many columns",
105 "Row in wrong partition",
106 "InnoDB is in read only mode",
107 "FTS query exceeds result cache memory limit",
108 "Temporary file write failure",
109 "Operation not allowed when innodb_force_recovery > 0",
110 "Too many words in a FTS phrase or proximity search",
111 "Foreign key cascade delete/update exceeds max depth",
112 "Required Create option missing",
113 "Out of memory in storage engine",
114 "Table corrupted",
115 "Query interrupted",
116 "Tablespace cannot be accessed",
117 "Tablespace is not empty",
118 "Incorrect file name",
119 "Operation is not allowed",
120 "Compute generate value failed",
121 "Row format changed in storage engine",
122 "Do not wait for lock",
123 "No more room in disk",
124 "No session temporary tablespace available",
125 "Invalid table name",
126 "Path is too long for the OS",
127 "Histogram sampling initialization failed",
128 "Too many nested sub-expressions in a full-text search"};
129
130// clang-format on
131
134
135#endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */
static const char * handler_error_messages[]
Errors a handler can give you.
Definition: my_handler_errors.h:38
void my_handler_error_unregister(void)
void my_handler_error_register(void)