| API Docs for SAX and DOM |
| Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members # XMLDOMMsg.hpp Go to the documentation of this file.
    00001 // This file is generated, don't edit it!!
    00002
    00003 #if !defined(ERRHEADER_XMLDOMMsg)
    00004 #define ERRHEADER_XMLDOMMsg
    00005
    00006 #include <xercesc/framework/XMLErrorReporter.hpp>
    00007 #include <xercesc/util/XercesDefs.hpp>
    00008
    00009 XERCES_CPP_NAMESPACE_BEGIN
    00010
    00011 class XMLDOMMsg
    00012 {
    00013 public :
    00014     enum Codes
    00015     {
    00016         NoError                            = 0
    00017       , F_LowBounds                        = 1
    00018       , DOMEXCEPTION_ERRX                  = 2
    00019       , INDEX_SIZE_ERR                     = 3
    00020       , DOMSTRING_SIZE_ERR                 = 4
    00021       , HIERARCHY_REQUEST_ERR              = 5
    00022       , WRONG_DOCUMENT_ERR                 = 6
    00023       , INVALID_CHARACTER_ERR              = 7
    00024       , NO_DATA_ALLOWED_ERR                = 8
    00025       , NO_MODIFICATION_ALLOWED_ERR        = 9
    00026       , NOT_FOUND_ERR                      = 10
    00027       , NOT_SUPPORTED_ERR                  = 11
    00028       , INUSE_ATTRIBUTE_ERR                = 12
    00029       , INVALID_STATE_ERR                  = 13
    00030       , SYNTAX_ERR                         = 14
    00031       , INVALID_MODIFICATION_ERR           = 15
    00032       , NAMESPACE_ERR                      = 16
    00033       , INVALID_ACCESS_ERR                 = 17
    00034       , VALIDATION_ERR                     = 18
    00035       , DOMRANGEEXCEPTION_ERRX             = 19
    00036       , BAD_BOUNDARYPOINTS_ERR             = 20
    00037       , INVALID_NODE_TYPE_ERR              = 21
    00038       , Writer_NestedCDATA                 = 22
    00039       , Writer_NotRepresentChar            = 23
    00040       , Writer_NotRecognizedType           = 24
    00041       , F_HighBounds                       = 25
    00042       , W_LowBounds                        = 26
    00043       , W_HighBounds                       = 27
    00044       , E_LowBounds                        = 28
    00045       , E_HighBounds                       = 29
    00046     };
    00047
    00048     static bool isFatal(const XMLDOMMsg::Codes toCheck)
    00049     {
    00050         return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
    00051     }
    00052
    00053     static bool isWarning(const XMLDOMMsg::Codes toCheck)
    00054     {
    00055         return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
    00056     }
    00057
    00058     static bool isError(const XMLDOMMsg::Codes toCheck)
    00059     {
    00060         return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
    00061     }
    00062
    00063     static XMLErrorReporter::ErrTypes errorType(const XMLDOMMsg::Codes toCheck)
    00064     {
    00065        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
    00066            return XMLErrorReporter::ErrType_Warning;
    00067        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
    00068             return XMLErrorReporter::ErrType_Fatal;
    00069        else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
    00070             return XMLErrorReporter::ErrType_Error;
    00071        return XMLErrorReporter::ErrTypes_Unknown;
    00072     }
    00073 };
    00074
    00075 XERCES_CPP_NAMESPACE_END
    00076
    00077 #endif
    00078

Copyright © 2000 The Apache Software Foundation. All Rights Reserved.