Eneboo - Documentación para desarrolladores
src/libmysql_std/include/errmsg.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2000 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 /* Error messages for MySQL clients */
00017 /* (Error messages for the daemon are in share/language/errmsg.sys) */
00018 
00019 #ifdef  __cplusplus
00020 extern "C" {
00021 #endif
00022 void    init_client_errs(void);
00023 void    finish_client_errs(void);
00024 extern const char *client_errors[];     /* Error messages */
00025 #ifdef  __cplusplus
00026 }
00027 #endif
00028 
00029 #define CR_MIN_ERROR            2000    /* For easier client code */
00030 #define CR_MAX_ERROR            2999
00031 #if defined(OS2) && defined(MYSQL_SERVER)
00032 #define CER(X) client_errors[(X)-CR_MIN_ERROR]
00033 #elif !defined(ER)
00034 #define ER(X) client_errors[(X)-CR_MIN_ERROR]
00035 #endif
00036 #define CLIENT_ERRMAP           2       /* Errormap used by my_error() */
00037 
00038 /* Do not add error numbers before CR_ERROR_FIRST. */
00039 /* If necessary to add lower numbers, change CR_ERROR_FIRST accordingly. */
00040 #define CR_ERROR_FIRST          2000 /*Copy first error nr.*/
00041 #define CR_UNKNOWN_ERROR        2000
00042 #define CR_SOCKET_CREATE_ERROR  2001
00043 #define CR_CONNECTION_ERROR     2002
00044 #define CR_CONN_HOST_ERROR      2003
00045 #define CR_IPSOCK_ERROR         2004
00046 #define CR_UNKNOWN_HOST         2005
00047 #define CR_SERVER_GONE_ERROR    2006
00048 #define CR_VERSION_ERROR        2007
00049 #define CR_OUT_OF_MEMORY        2008
00050 #define CR_WRONG_HOST_INFO      2009
00051 #define CR_LOCALHOST_CONNECTION 2010
00052 #define CR_TCP_CONNECTION       2011
00053 #define CR_SERVER_HANDSHAKE_ERR 2012
00054 #define CR_SERVER_LOST          2013
00055 #define CR_COMMANDS_OUT_OF_SYNC 2014
00056 #define CR_NAMEDPIPE_CONNECTION 2015
00057 #define CR_NAMEDPIPEWAIT_ERROR  2016
00058 #define CR_NAMEDPIPEOPEN_ERROR  2017
00059 #define CR_NAMEDPIPESETSTATE_ERROR 2018
00060 #define CR_CANT_READ_CHARSET    2019
00061 #define CR_NET_PACKET_TOO_LARGE 2020
00062 #define CR_EMBEDDED_CONNECTION  2021
00063 #define CR_PROBE_SLAVE_STATUS   2022
00064 #define CR_PROBE_SLAVE_HOSTS    2023
00065 #define CR_PROBE_SLAVE_CONNECT  2024
00066 #define CR_PROBE_MASTER_CONNECT 2025
00067 #define CR_SSL_CONNECTION_ERROR 2026
00068 #define CR_MALFORMED_PACKET     2027
00069 #define CR_WRONG_LICENSE        2028
00070 
00071 /* new 4.1 error codes */
00072 #define CR_NULL_POINTER         2029
00073 #define CR_NO_PREPARE_STMT      2030
00074 #define CR_PARAMS_NOT_BOUND     2031
00075 #define CR_DATA_TRUNCATED       2032
00076 #define CR_NO_PARAMETERS_EXISTS 2033
00077 #define CR_INVALID_PARAMETER_NO 2034
00078 #define CR_INVALID_BUFFER_USE   2035
00079 #define CR_UNSUPPORTED_PARAM_TYPE 2036
00080 
00081 #define CR_SHARED_MEMORY_CONNECTION             2037
00082 #define CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR  2038
00083 #define CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR   2039
00084 #define CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR 2040
00085 #define CR_SHARED_MEMORY_CONNECT_MAP_ERROR      2041
00086 #define CR_SHARED_MEMORY_FILE_MAP_ERROR         2042
00087 #define CR_SHARED_MEMORY_MAP_ERROR              2043
00088 #define CR_SHARED_MEMORY_EVENT_ERROR            2044
00089 #define CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR 2045
00090 #define CR_SHARED_MEMORY_CONNECT_SET_ERROR      2046
00091 #define CR_CONN_UNKNOW_PROTOCOL                 2047
00092 #define CR_INVALID_CONN_HANDLE                  2048
00093 #define CR_SECURE_AUTH                          2049
00094 #define CR_FETCH_CANCELED                       2050
00095 #define CR_NO_DATA                              2051
00096 #define CR_NO_STMT_METADATA                     2052
00097 #define CR_NO_RESULT_SET                        2053
00098 #define CR_NOT_IMPLEMENTED                      2054
00099 #define CR_SERVER_LOST_EXTENDED                 2055
00100 #define CR_ERROR_LAST  /*Copy last error nr:*/  2055
00101 /* Add error numbers before CR_ERROR_LAST and change it accordingly. */
00102 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'