rtXmlErrCodes.h
Go to the documentation of this file.00001 /* 00002 * Copyright (c) 1997-2013 Objective Systems, Inc. 00003 * 00004 * This software is furnished under a license and may be used and copied 00005 * only in accordance with the terms of such license and with the 00006 * inclusion of the above copyright notice. This software or any other 00007 * copies thereof may not be provided or otherwise made available to any 00008 * other person. No title to and ownership of the software is hereby 00009 * transferred. 00010 * 00011 * The information in this software is subject to change without notice 00012 * and should not be construed as a commitment by Objective Systems, Inc. 00013 * 00014 * PROPRIETARY NOTICE 00015 * 00016 * This software is an unpublished work subject to a confidentiality agreement 00017 * and is protected by copyright and trade secret law. Unauthorized copying, 00018 * redistribution or other use of this work is prohibited. 00019 * 00020 * The above notice of copyright on this source code product does not indicate 00021 * any actual or intended publication of such source code. 00022 * 00023 *****************************************************************************/ 00029 #ifndef _RTXMLERRCODES_H_ 00030 #define _RTXMLERRCODES_H_ 00031 00032 #include "rtxsrc/rtxErrCodes.h" 00033 00045 /* 00046 When adding error codes here, see also g_status_text in rtXmlError.c, where 00047 message formats for each code are defined. 00048 */ 00049 00051 #define XML_OK_EOB 0x7fffffff 00052 00054 #define XML_OK_FRAG XML_OK_EOB 00055 00060 #define XML_E_BASE -200 00061 00065 #define XML_E_GENERR (XML_E_BASE) 00066 00071 /* Message: 00072 * Invalid symbol '%s' detected at position %s in XML stream 00073 * Parameters: 00074 * 1. symbol name (string) 00075 * 2. position in XML stream (string) 00076 */ 00077 #define XML_E_INVSYMBOL (XML_E_BASE-1) 00078 00084 /* Message: 00085 * Start/end XML tags mismatch: parsed '%s', expected '%s' 00086 * Parameters: 00087 * 1. parsed end tag value (string) 00088 * 2. parsed start tag value (string) 00089 */ 00090 #define XML_E_TAGMISMATCH (XML_E_BASE-2) 00091 00095 #define XML_E_DUPLATTR (XML_E_BASE-3) 00096 00100 #define XML_E_BADCHARREF (XML_E_BASE-4) 00101 00105 #define XML_E_INVMODE (XML_E_BASE-5) 00106 00110 #define XML_E_UNEXPEOF (XML_E_BASE-6) 00111 00115 #define XML_E_NOMATCH (XML_E_BASE-7) 00116 00121 #define XML_E_ELEMMISRQ (XML_E_BASE-8) 00122 00128 #define XML_E_ELEMSMISRQ (XML_E_BASE-9) 00129 00135 #define XML_E_TOOFEWELEMS (XML_E_BASE-10) 00136 00140 #define XML_E_UNEXPSTARTTAG (XML_E_BASE-11) 00141 00145 #define XML_E_UNEXPENDTAG (XML_E_BASE-12) 00146 00150 #define XML_E_IDNOTFOU (XML_E_BASE-13) 00151 00155 #define XML_E_INVTYPEINFO (XML_E_BASE-14) 00156 00161 /* Message: 00162 * Namespace URI for prefix '%s' not found 00163 * Parameters: 00164 * 1. namespace prefix (string) 00165 */ 00166 #define XML_E_NSURINOTFOU (XML_E_BASE-15) 00167 00171 /* Message: 00172 * Key not found in '%s', fields: %s %s %s %s 00173 * Parameters: 00174 * 1. name of keyref constraint 00175 * 2 - 5. field values of failed key 00176 */ 00177 #define XML_E_KEYNOTFOU (XML_E_BASE-16) 00178 00182 /* Message: 00183 * Duplicate key found in '%s', fields: %s %s %s %s 00184 * Parameters: 00185 * 1. name of key/unique constraint 00186 * 2 - 5. field values of failed key 00187 */ 00188 #define XML_E_DUPLKEY (XML_E_BASE-17) 00189 00193 /* Message: 00194 * Field #%s absent in some key of '%s' 00195 * Parameters: 00196 * 1. index of absent field 00197 * 2. name of key constraint 00198 */ 00199 #define XML_E_FLDABSENT (XML_E_BASE-18) 00200 00204 /* Message: 00205 * Key has duplicate field #%s in '%s'' 00206 * Parameters: 00207 * 1. index of duplicate field 00208 * 2. name of constraint 00209 */ 00210 #define XML_E_DUPLFLD (XML_E_BASE-19) 00211 00215 #define XML_E_NOTEMPTY (XML_E_BASE-20) 00216 00220 #endif