http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMLErrorCodes.hpp

Go to the documentation of this file.
00001 // This file is generated, don't edit it!!
00002 
00003 #if !defined(ERRHEADER_XMLErrs)
00004 #define ERRHEADER_XMLErrs
00005 
00006 #include <xercesc/framework/XMLErrorReporter.hpp>
00007 #include <xercesc/util/XercesDefs.hpp>
00008 #include <xercesc/dom/DOMError.hpp>
00009 
00010 XERCES_CPP_NAMESPACE_BEGIN
00011 
00012 class XMLErrs
00013 {
00014 public :
00015     enum Codes
00016     {
00017         NoError                            = 0
00018       , W_LowBounds                        = 1
00019       , NotationAlreadyExists              = 2
00020       , AttListAlreadyExists               = 3
00021       , ContradictoryEncoding              = 4
00022       , UndeclaredElemInCM                 = 5
00023       , UndeclaredElemInAttList            = 6
00024       , XMLException_Warning               = 7
00025       , W_HighBounds                       = 8
00026       , E_LowBounds                        = 9
00027       , FeatureUnsupported                 = 10
00028       , TopLevelNoNameComplexType          = 11
00029       , TopLevelNoNameAttribute            = 12
00030       , NoNameRefAttribute                 = 13
00031       , GlobalNoNameElement                = 14
00032       , NoNameRefElement                   = 15
00033       , NoNameRefGroup                     = 16
00034       , NoNameRefAttGroup                  = 17
00035       , AnonComplexTypeWithName            = 18
00036       , AnonSimpleTypeWithName             = 19
00037       , InvalidElementContent              = 20
00038       , UntypedElement                     = 21
00039       , SimpleTypeContentError             = 22
00040       , ExpectedSimpleTypeInList           = 23
00041       , ListUnionRestrictionError          = 24
00042       , SimpleTypeDerivationByListError    = 25
00043       , ExpectedSimpleTypeInRestriction    = 26
00044       , DuplicateFacet                     = 27
00045       , ExpectedSimpleTypeInUnion          = 28
00046       , EmptySimpleTypeContent             = 29
00047       , InvalidSimpleContent               = 30
00048       , UnspecifiedBase                    = 31
00049       , InvalidComplexContent              = 32
00050       , SchemaElementContentError          = 33
00051       , ContentError                       = 34
00052       , UnknownSimpleType                  = 35
00053       , UnknownComplexType                 = 36
00054       , UnresolvedPrefix                   = 37
00055       , RefElementNotFound                 = 38
00056       , TypeNotFound                       = 39
00057       , TopLevelAttributeNotFound          = 40
00058       , InvalidChildInComplexType          = 41
00059       , BaseTypeNotFound                   = 42
00060       , NoAttributeInSchema                = 43
00061       , DatatypeValidatorCreationError     = 44
00062       , InvalidChildFollowingSimpleContent   = 45
00063       , InvalidChildFollowingConplexContent   = 46
00064       , InvalidComplexTypeBlockValue       = 47
00065       , InvalidComplexTypeFinalValue       = 48
00066       , AttributeDefaultFixedValue         = 49
00067       , NotOptionalDefaultAttValue         = 50
00068       , LocalAttributeWithNameRef          = 51
00069       , GlobalAttributeWithNameRef         = 52
00070       , DuplicateAttribute                 = 53
00071       , AttributeWithTypeAndSimpleType     = 54
00072       , AttributeSimpleTypeNotFound        = 55
00073       , ElementWithFixedAndDefault         = 56
00074       , DeclarationWithNameRef             = 57
00075       , BadAttWithRef                      = 58
00076       , InvalidDeclarationName             = 59
00077       , GlobalElementWithRef               = 60
00078       , ElementWithTypeAndAnonType         = 61
00079       , NotSimpleOrMixedElement            = 62
00080       , DisallowedSimpleTypeExtension      = 63
00081       , InvalidSimpleContentBase           = 64
00082       , InvalidComplexTypeBase             = 65
00083       , InvalidChildInSimpleContent        = 66
00084       , InvalidChildInComplexContent       = 67
00085       , AnnotationError                    = 68
00086       , DisallowedBaseDerivation           = 69
00087       , SubstitutionRepeated               = 70
00088       , UnionRepeated                      = 71
00089       , ExtensionRepeated                  = 72
00090       , ListRepeated                       = 73
00091       , RestrictionRepeated                = 74
00092       , InvalidBlockValue                  = 75
00093       , InvalidFinalValue                  = 76
00094       , InvalidSubstitutionGroupElement    = 77
00095       , SubstitutionGroupTypeMismatch      = 78
00096       , DuplicateElementDeclaration        = 79
00097       , InvalidElementBlockValue           = 80
00098       , InvalidElementFinalValue           = 81
00099       , InvalidAttValue                    = 82
00100       , AttributeRefContentError           = 83
00101       , DuplicateRefAttribute              = 84
00102       , ForbiddenDerivationByRestriction   = 85
00103       , ForbiddenDerivationByExtension     = 86
00104       , BaseNotComplexType                 = 87
00105       , ImportNamespaceDifference          = 88
00106       , ImportRootError                    = 89
00107       , DeclarationNoSchemaLocation        = 90
00108       , IncludeNamespaceDifference         = 91
00109       , OnlyAnnotationExpected             = 92
00110       , InvalidAttributeContent            = 93
00111       , AttributeRequired                  = 94
00112       , AttributeDisallowed                = 95
00113       , InvalidMin2MaxOccurs               = 96
00114       , AnyAttributeContentError           = 97
00115       , NoNameGlobalElement                = 98
00116       , NoCircularDefinition               = 99
00117       , DuplicateGlobalType                = 100
00118       , DuplicateGlobalDeclaration         = 101
00119       , WS_CollapseExpected                = 102
00120       , Import_1_1                         = 103
00121       , Import_1_2                         = 104
00122       , ElemIDValueConstraint              = 105
00123       , NoNotationType                     = 106
00124       , EmptiableMixedContent              = 107
00125       , EmptyComplexRestrictionDerivation   = 108
00126       , MixedOrElementOnly                 = 109
00127       , InvalidContentRestriction          = 110
00128       , ForbiddenDerivation                = 111
00129       , AtomicItemType                     = 112
00130       , MemberTypeNoUnion                  = 113
00131       , GroupContentError                  = 114
00132       , AttGroupContentError               = 115
00133       , MinMaxOnGroupChild                 = 116
00134       , DeclarationNotFound                = 117
00135       , AllContentLimited                  = 118
00136       , BadMinMaxAllCT                     = 119
00137       , BadMinMaxAllElem                   = 120
00138       , NoCircularAttGroup                 = 121
00139       , DuplicateAttInDerivation           = 122
00140       , NotExpressibleWildCardIntersection   = 123
00141       , BadAttDerivation_1                 = 124
00142       , BadAttDerivation_2                 = 125
00143       , BadAttDerivation_3                 = 126
00144       , BadAttDerivation_4                 = 127
00145       , BadAttDerivation_5                 = 128
00146       , BadAttDerivation_6                 = 129
00147       , BadAttDerivation_7                 = 130
00148       , BadAttDerivation_8                 = 131
00149       , BadAttDerivation_9                 = 132
00150       , AllContentError                    = 133
00151       , RedefineNamespaceDifference        = 134
00152       , Redefine_InvalidSimpleType         = 135
00153       , Redefine_InvalidSimpleTypeBase     = 136
00154       , Redefine_InvalidComplexType        = 137
00155       , Redefine_InvalidComplexTypeBase    = 138
00156       , Redefine_InvalidGroupMinMax        = 139
00157       , Redefine_DeclarationNotFound       = 140
00158       , Redefine_GroupRefCount             = 141
00159       , Redefine_AttGroupRefCount          = 142
00160       , Redefine_InvalidChild              = 143
00161       , Notation_InvalidDecl               = 144
00162       , Notation_DeclNotFound              = 145
00163       , IC_DuplicateDecl                   = 146
00164       , IC_BadContent                      = 147
00165       , IC_KeyRefReferNotFound             = 148
00166       , IC_KeyRefCardinality               = 149
00167       , IC_XPathExprMissing                = 150
00168       , AttUseCorrect                      = 151
00169       , AttDeclPropCorrect3                = 152
00170       , AttDeclPropCorrect5                = 153
00171       , AttGrpPropCorrect3                 = 154
00172       , InvalidTargetNSValue               = 155
00173       , DisplayErrorMessage                = 156
00174       , XMLException_Error                 = 157
00175       , InvalidRedefine                    = 158
00176       , InvalidNSReference                 = 159
00177       , NotAllContent                      = 160
00178       , InvalidAnnotationContent           = 161
00179       , InvalidFacetName                   = 162
00180       , InvalidXMLSchemaRoot               = 163
00181       , CircularSubsGroup                  = 164
00182       , SubsGroupMemberAbstract            = 165
00183       , ELTSchemaNS                        = 166
00184       , InvalidAttTNS                      = 167
00185       , NSDeclInvalid                      = 168
00186       , DOMLevel1Node                      = 169
00187       , E_HighBounds                       = 170
00188       , F_LowBounds                        = 171
00189       , EntityExpansionLimitExceeded       = 172
00190       , ExpectedCommentOrCDATA             = 173
00191       , ExpectedAttrName                   = 174
00192       , ExpectedNotationName               = 175
00193       , NoRepInMixed                       = 176
00194       , BadDefAttrDecl                     = 177
00195       , ExpectedDefAttrDecl                = 178
00196       , AttListSyntaxError                 = 179
00197       , ExpectedEqSign                     = 180
00198       , DupAttrName                        = 181
00199       , BadIdForXMLLangAttr                = 182
00200       , ExpectedElementName                = 183
00201       , MustStartWithXMLDecl               = 184
00202       , CommentsMustStartWith              = 185
00203       , InvalidDocumentStructure           = 186
00204       , ExpectedDeclString                 = 187
00205       , BadXMLVersion                      = 188
00206       , UnsupportedXMLVersion              = 189
00207       , UnterminatedXMLDecl                = 190
00208       , BadXMLEncoding                     = 191
00209       , BadStandalone                      = 192
00210       , UnterminatedComment                = 193
00211       , PINameExpected                     = 194
00212       , UnterminatedPI                     = 195
00213       , InvalidCharacter                   = 196
00214       , UnexpectedTextBeforeRoot           = 197
00215       , UnterminatedStartTag               = 198
00216       , ExpectedAttrValue                  = 199
00217       , UnterminatedEndTag                 = 200
00218       , ExpectedAttributeType              = 201
00219       , ExpectedEndOfTagX                  = 202
00220       , ExpectedMarkup                     = 203
00221       , NotValidAfterContent               = 204
00222       , ExpectedComment                    = 205
00223       , ExpectedCommentOrPI                = 206
00224       , ExpectedWhitespace                 = 207
00225       , NoRootElemInDOCTYPE                = 208
00226       , ExpectedQuotedString               = 209
00227       , ExpectedPublicId                   = 210
00228       , InvalidPublicIdChar                = 211
00229       , UnterminatedDOCTYPE                = 212
00230       , InvalidCharacterInIntSubset        = 213
00231       , ExpectedCDATA                      = 214
00232       , InvalidInitialNameChar             = 215
00233       , InvalidNameChar                    = 216
00234       , UnexpectedWhitespace               = 217
00235       , InvalidCharacterInAttrValue        = 218
00236       , ExpectedMarkupDecl                 = 219
00237       , TextDeclNotLegalHere               = 220
00238       , ConditionalSectInIntSubset         = 221
00239       , ExpectedPEName                     = 222
00240       , UnterminatedEntityDecl             = 223
00241       , InvalidCharacterRef                = 224
00242       , UnterminatedCharRef                = 225
00243       , ExpectedEntityRefName              = 226
00244       , EntityNotFound                     = 227
00245       , NoUnparsedEntityRefs               = 228
00246       , UnterminatedEntityRef              = 229
00247       , RecursiveEntity                    = 230
00248       , PartialMarkupInEntity              = 231
00249       , UnterminatedElementDecl            = 232
00250       , ExpectedContentSpecExpr            = 233
00251       , ExpectedAsterisk                   = 234
00252       , UnterminatedContentModel           = 235
00253       , ExpectedSystemId                   = 236
00254       , ExpectedSystemOrPublicId           = 237
00255       , UnterminatedNotationDecl           = 238
00256       , ExpectedSeqChoiceLeaf              = 239
00257       , ExpectedChoiceOrCloseParen         = 240
00258       , ExpectedSeqOrCloseParen            = 241
00259       , ExpectedEnumValue                  = 242
00260       , ExpectedEnumSepOrParen             = 243
00261       , UnterminatedEntityLiteral          = 244
00262       , MoreEndThanStartTags               = 245
00263       , ExpectedOpenParen                  = 246
00264       , AttrAlreadyUsedInSTag              = 247
00265       , BracketInAttrValue                 = 248
00266       , Expected2ndSurrogateChar           = 249
00267       , ExpectedEndOfConditional           = 250
00268       , ExpectedIncOrIgn                   = 251
00269       , ExpectedINCLUDEBracket             = 252
00270       , ExpectedTextDecl                   = 253
00271       , ExpectedXMLDecl                    = 254
00272       , UnexpectedEOE                      = 255
00273       , PEPropogated                       = 256
00274       , ExtraCloseSquare                   = 257
00275       , PERefInMarkupInIntSubset           = 258
00276       , EntityPropogated                   = 259
00277       , ExpectedNumericalCharRef           = 260
00278       , ExpectedOpenSquareBracket          = 261
00279       , BadSequenceInCharData              = 262
00280       , IllegalSequenceInComment           = 263
00281       , UnterminatedCDATASection           = 264
00282       , ExpectedNDATA                      = 265
00283       , NDATANotValidForPE                 = 266
00284       , HexRadixMustBeLowerCase            = 267
00285       , DeclStringRep                      = 268
00286       , DeclStringsInWrongOrder            = 269
00287       , NoExtRefsInAttValue                = 270
00288       , XMLDeclMustBeLowerCase             = 271
00289       , ExpectedEntityValue                = 272
00290       , BadDigitForRadix                   = 273
00291       , EndedWithTagsOnStack               = 274
00292       , AmbiguousContentModel              = 275
00293       , NestedCDATA                        = 276
00294       , UnknownPrefix                      = 277
00295       , PartialTagMarkupError              = 278
00296       , EmptyMainEntity                    = 279
00297       , CDATAOutsideOfContent              = 280
00298       , OnlyCharRefsAllowedHere            = 281
00299       , Unexpected2ndSurrogateChar         = 282
00300       , NoPIStartsWithXML                  = 283
00301       , XMLDeclMustBeFirst                 = 284
00302       , XMLVersionRequired                 = 285
00303       , StandaloneNotLegal                 = 286
00304       , EncodingRequired                   = 287
00305       , TooManyColonsInName                = 288
00306       , InvalidColonPos                    = 289
00307       , ColonNotLegalWithNS                = 290
00308       , SysException                       = 291
00309       , XMLException_Fatal                 = 292
00310       , UnexpectedEOF                      = 293
00311       , UnexpectedError                    = 294
00312       , BadSchemaLocation                  = 295
00313       , NoGrammarResolver                  = 296
00314       , SchemaScanFatalError               = 297
00315       , IllegalRefInStandalone             = 298
00316       , PEBetweenDecl                      = 299
00317       , NoEmptyStrNamespace                = 300
00318       , NoUseOfxmlnsAsPrefix               = 301
00319       , NoUseOfxmlnsURI                    = 302
00320       , PrefixXMLNotMatchXMLURI            = 303
00321       , XMLURINotMatchXMLPrefix            = 304
00322       , NoXMLNSAsElementPrefix             = 305
00323       , CT_SimpleTypeChildRequired         = 306
00324       , F_HighBounds                       = 307
00325     };
00326 
00327     static bool isFatal(const XMLErrs::Codes toCheck)
00328     {
00329         return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
00330     }
00331 
00332     static bool isWarning(const XMLErrs::Codes toCheck)
00333     {
00334         return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
00335     }
00336 
00337     static bool isError(const XMLErrs::Codes toCheck)
00338     {
00339         return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
00340     }
00341 
00342     static XMLErrorReporter::ErrTypes errorType(const XMLErrs::Codes toCheck)
00343     {
00344        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
00345            return XMLErrorReporter::ErrType_Warning;
00346        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
00347             return XMLErrorReporter::ErrType_Fatal;
00348        else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
00349             return XMLErrorReporter::ErrType_Error;
00350        return XMLErrorReporter::ErrTypes_Unknown;
00351     }
00352     static DOMError::ErrorSeverity  DOMErrorType(const XMLErrs::Codes toCheck)
00353     {
00354        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
00355            return DOMError::DOM_SEVERITY_WARNING;
00356        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
00357             return DOMError::DOM_SEVERITY_FATAL_ERROR;
00358        else return DOMError::DOM_SEVERITY_ERROR;
00359     }
00360 
00361 private:
00362     // -----------------------------------------------------------------------
00363     //  Unimplemented constructors and operators
00364     // -----------------------------------------------------------------------
00365     XMLErrs();
00366 };
00367 
00368 XERCES_CPP_NAMESPACE_END
00369 
00370 #endif
00371 


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.