rtXmlErrCodes.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1997-2010 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 
00046 #define XML_OK_EOB      0x7fffffff
00047 
00049 #define XML_OK_FRAG     XML_OK_EOB
00050 
00055 #define XML_E_BASE      -200
00056 
00060 #define XML_E_GENERR  (XML_E_BASE)
00061 
00066 /* Message:
00067  * Invalid symbol '%s' detected at position %s in XML stream
00068  * Parameters:
00069  * 1. symbol name (string)
00070  * 2. position in XML stream (string)
00071  */
00072 #define XML_E_INVSYMBOL (XML_E_BASE-1)
00073 
00079 /* Message:
00080  * Start/end XML tags mismatch: parsed '%s', expected '%s'
00081  * Parameters:
00082  * 1. parsed end tag value (string)
00083  * 2. parsed start tag value (string)
00084  */
00085 #define XML_E_TAGMISMATCH (XML_E_BASE-2)
00086 
00090 #define XML_E_DUPLATTR (XML_E_BASE-3)
00091 
00095 #define XML_E_BADCHARREF (XML_E_BASE-4)
00096 
00100 #define XML_E_INVMODE  (XML_E_BASE-5)
00101 
00105 #define XML_E_UNEXPEOF  (XML_E_BASE-6)
00106 
00110 #define XML_E_NOMATCH    (XML_E_BASE-7)
00111 
00116 #define XML_E_ELEMMISRQ (XML_E_BASE-8)
00117 
00123 #define XML_E_ELEMSMISRQ (XML_E_BASE-9)
00124 
00130 #define XML_E_TOOFEWELEMS (XML_E_BASE-10)
00131 
00135 #define XML_E_UNEXPSTARTTAG (XML_E_BASE-11)
00136 
00140 #define XML_E_UNEXPENDTAG (XML_E_BASE-12)
00141 
00145 #define XML_E_IDNOTFOU (XML_E_BASE-13)
00146 
00150 #define XML_E_INVTYPEINFO (XML_E_BASE-14)
00151 
00156 /* Message:
00157  * Namespace URI for prefix '%s' not found
00158  * Parameters:
00159  * 1. namespace prefix (string)
00160  */
00161 #define XML_E_NSURINOTFOU (XML_E_BASE-15)
00162 
00166 /* Message:
00167  * Key not found in '%s', fields: %s %s %s %s
00168  * Parameters:
00169  * 1. name of keyref constraint
00170  * 2 - 5. field values of failed key
00171  */
00172 #define XML_E_KEYNOTFOU (XML_E_BASE-16)
00173 
00177 /* Message:
00178  * Duplicate key found in '%s', fields: %s %s %s %s
00179  * Parameters:
00180  * 1. name of key/unique constraint
00181  * 2 - 5. field values of failed key
00182  */
00183 #define XML_E_DUPLKEY (XML_E_BASE-17)
00184 
00188 /* Message:
00189  * Field #%s absent in some key of '%s'
00190  * Parameters:
00191  * 1. index of absent field
00192  * 2. name of key constraint
00193  */
00194 #define XML_E_FLDABSENT (XML_E_BASE-18)
00195 
00199 /* Message:
00200  * Key has duplicate field #%s in '%s''
00201  * Parameters:
00202  * 1. index of duplicate field
00203  * 2. name of constraint
00204  */
00205 #define XML_E_DUPLFLD (XML_E_BASE-19)
00206 
00210 #endif