MySQL 9.0.0
Source Code Documentation
mysys_err.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef _mysys_err_h
25#define _mysys_err_h
26
27/**
28 @file include/mysys_err.h
29*/
30
31#define GLOBERRS \
32 (EE_ERROR_LAST - EE_ERROR_FIRST + 1) /* Nr of global errors \
33 */
34#define EE(X) (globerrs[(X)-EE_ERROR_FIRST])
35
36extern const char *globerrs[]; /* my_error_messages is here */
37
38/* Error message numbers in global map */
39/*
40 Do not add error numbers before EE_ERROR_FIRST.
41 If necessary to add lower numbers, change EE_ERROR_FIRST accordingly.
42
43 We start with error 1 to not confuse peoples with 'error 0'
44*/
46#define EE_ERROR_FIRST 1 /*Copy first error nr.*/
47#define EE_CANTCREATEFILE 1
48#define EE_READ 2
49#define EE_WRITE 3
50#define EE_BADCLOSE 4
51#define EE_OUTOFMEMORY 5
52#define EE_DELETE 6
53#define EE_LINK 7
54#define EE_EOFERR 9
55#define EE_CANTLOCK 10
56#define EE_CANTUNLOCK 11
57#define EE_DIR 12
58#define EE_STAT 13
59#define EE_CANT_CHSIZE 14
60#define EE_CANT_OPEN_STREAM 15
61#define EE_GETWD 16
62#define EE_SETWD 17
63#define EE_LINK_WARNING 18
64#define EE_OPEN_WARNING 19
65#define EE_DISK_FULL 20
66#define EE_CANT_MKDIR 21
67#define EE_UNKNOWN_CHARSET 22
68#define EE_OUT_OF_FILERESOURCES 23
69#define EE_CANT_READLINK 24
70#define EE_CANT_SYMLINK 25
71#define EE_REALPATH 26
72#define EE_SYNC 27
73#define EE_UNKNOWN_COLLATION 28
74#define EE_FILENOTFOUND 29
75#define EE_FILE_NOT_CLOSED 30
76#define EE_CHANGE_OWNERSHIP 31
77#define EE_CHANGE_PERMISSIONS 32
78#define EE_CANT_SEEK 33
79#define EE_CAPACITY_EXCEEDED 34
80#define EE_DISK_FULL_WITH_RETRY_MSG 35
81#define EE_FAILED_TO_CREATE_TIMER 36
82#define EE_FAILED_TO_DELETE_TIMER 37
83#define EE_FAILED_TO_CREATE_TIMER_QUEUE 38
84#define EE_FAILED_TO_START_TIMER_NOTIFY_THREAD 39
85#define EE_FAILED_TO_CREATE_TIMER_NOTIFY_THREAD_INTERRUPT_EVENT 40
86#define EE_EXITING_TIMER_NOTIFY_THREAD 41
87#define EE_WIN_LIBRARY_LOAD_FAILED 42
88#define EE_WIN_RUN_TIME_ERROR_CHECK 43
89#define EE_FAILED_TO_DETERMINE_LARGE_PAGE_SIZE 44
90#define EE_FAILED_TO_KILL_ALL_THREADS 45
91#define EE_FAILED_TO_CREATE_IO_COMPLETION_PORT 46
92#define EE_FAILED_TO_OPEN_DEFAULTS_FILE 47
93#define EE_FAILED_TO_HANDLE_DEFAULTS_FILE 48
94#define EE_WRONG_DIRECTIVE_IN_CONFIG_FILE 49
95#define EE_SKIPPING_DIRECTIVE_DUE_TO_MAX_INCLUDE_RECURSION 50
96#define EE_INCORRECT_GRP_DEFINITION_IN_CONFIG_FILE 51
97#define EE_OPTION_WITHOUT_GRP_IN_CONFIG_FILE 52
98#define EE_CONFIG_FILE_PERMISSION_ERROR 53
99#define EE_IGNORE_WORLD_WRITABLE_CONFIG_FILE 54
100#define EE_USING_DISABLED_OPTION 55
101#define EE_USING_DISABLED_SHORT_OPTION 56
102#define EE_USING_PASSWORD_ON_CLI_IS_INSECURE 57
103#define EE_UNKNOWN_SUFFIX_FOR_VARIABLE 58
104#define EE_SSL_ERROR_FROM_FILE 59
105#define EE_SSL_ERROR 60
106#define EE_NET_SEND_ERROR_IN_BOOTSTRAP 61
107#define EE_PACKETS_OUT_OF_ORDER 62
108#define EE_UNKNOWN_PROTOCOL_OPTION 63
109#define EE_FAILED_TO_LOCATE_SERVER_PUBLIC_KEY 64
110#define EE_PUBLIC_KEY_NOT_IN_PEM_FORMAT 65
111#define EE_DEBUG_INFO 66
112#define EE_UNKNOWN_VARIABLE 67
113#define EE_UNKNOWN_OPTION 68
114#define EE_UNKNOWN_SHORT_OPTION 69
115#define EE_OPTION_WITHOUT_ARGUMENT 70
116#define EE_OPTION_REQUIRES_ARGUMENT 71
117#define EE_SHORT_OPTION_REQUIRES_ARGUMENT 72
118#define EE_OPTION_IGNORED_DUE_TO_INVALID_VALUE 73
119#define EE_OPTION_WITH_EMPTY_VALUE 74
120#define EE_FAILED_TO_ASSIGN_MAX_VALUE_TO_OPTION 75
121#define EE_INCORRECT_BOOLEAN_VALUE_FOR_OPTION 76
122#define EE_FAILED_TO_SET_OPTION_VALUE 77
123#define EE_INCORRECT_INT_VALUE_FOR_OPTION 78
124#define EE_INCORRECT_UINT_VALUE_FOR_OPTION 79
125#define EE_ADJUSTED_SIGNED_VALUE_FOR_OPTION 80
126#define EE_ADJUSTED_UNSIGNED_VALUE_FOR_OPTION 81
127#define EE_ADJUSTED_ULONGLONG_VALUE_FOR_OPTION 82
128#define EE_ADJUSTED_DOUBLE_VALUE_FOR_OPTION 83
129#define EE_INVALID_DECIMAL_VALUE_FOR_OPTION 84
130#define EE_COLLATION_PARSER_ERROR 85
131#define EE_FAILED_TO_RESET_BEFORE_PRIMARY_IGNORABLE_CHAR 86
132#define EE_FAILED_TO_RESET_BEFORE_TERTIARY_IGNORABLE_CHAR 87
133#define EE_SHIFT_CHAR_OUT_OF_RANGE 88
134#define EE_RESET_CHAR_OUT_OF_RANGE 89
135#define EE_UNKNOWN_LDML_TAG 90
136#define EE_FAILED_TO_RESET_BEFORE_SECONDARY_IGNORABLE_CHAR 91
137#define EE_FAILED_PROCESSING_DIRECTIVE 92
138#define EE_PTHREAD_KILL_FAILED 93
139#define EE_ERROR_LAST 93 /* Copy last error nr */
140/* Add error numbers before EE_ERROR_LAST and change it accordingly. */
141
142/* Exit codes for option processing. When exiting from server use the
143 MYSQLD_*EXIT codes defined in sql_const.h */
145#define EXIT_UNSPECIFIED_ERROR 1
146#define EXIT_UNKNOWN_OPTION 2
147#define EXIT_AMBIGUOUS_OPTION 3
148#define EXIT_NO_ARGUMENT_ALLOWED 4
149#define EXIT_ARGUMENT_REQUIRED 5
150#define EXIT_VAR_PREFIX_NOT_UNIQUE 6
151#define EXIT_UNKNOWN_VARIABLE 7
152#define EXIT_OUT_OF_MEMORY 8
153#define EXIT_UNKNOWN_SUFFIX 9
154#define EXIT_NO_PTR_TO_VARIABLE 10
155#define EXIT_CANNOT_CONNECT_TO_SERVICE 11
156#define EXIT_OPTION_DISABLED 12
157#define EXIT_ARGUMENT_INVALID 13
158
159#endif
const char * globerrs[]
Definition: errors.cc:45