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