Xerces-C++: XMLDOMMsg.hpp Source File

Xerces-C++ 3.3.0

XMLDOMMsg.hpp
Go to the documentation of this file.
1// This file is generated, don't edit it!!
2
3#if !defined(XERCESC_INCLUDE_GUARD_ERRHEADER_XMLDOMMsg)
4#define XERCESC_INCLUDE_GUARD_ERRHEADER_XMLDOMMsg
5
6#include <xercesc/framework/XMLErrorReporter.hpp>
7#include <xercesc/util/XercesDefs.hpp>
8#include <xercesc/dom/DOMError.hpp>
9
10 XERCES_CPP_NAMESPACE_BEGIN
11
12// Ignore warning about private constructor
13#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
14# pragma GCC diagnostic push
15# pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
16#endif
17
18 class XMLDOMMsg
19{
20public :
21 enum Codes
22 {
23 NoError = 0
24 , F_LowBounds = 1
25 , DOMEXCEPTION_ERRX = 2
26 , INDEX_SIZE_ERR = 3
27 , DOMSTRING_SIZE_ERR = 4
28 , HIERARCHY_REQUEST_ERR = 5
29 , WRONG_DOCUMENT_ERR = 6
30 , INVALID_CHARACTER_ERR = 7
31 , NO_DATA_ALLOWED_ERR = 8
32 , NO_MODIFICATION_ALLOWED_ERR = 9
33 , NOT_FOUND_ERR = 10
34 , NOT_SUPPORTED_ERR = 11
35 , INUSE_ATTRIBUTE_ERR = 12
36 , INVALID_STATE_ERR = 13
37 , SYNTAX_ERR = 14
38 , INVALID_MODIFICATION_ERR = 15
39 , NAMESPACE_ERR = 16
40 , INVALID_ACCESS_ERR = 17
41 , VALIDATION_ERR = 18
42 , TYPE_MISMATCH_ERR = 19
43 , DOMRANGEEXCEPTION_ERRX = 20
44 , BAD_BOUNDARYPOINTS_ERR = 21
45 , INVALID_NODE_TYPE_ERR = 22
46 , DOMLSEXCEPTION_ERRX = 23
47 , PARSE_ERR = 24
48 , SERIALIZE_ERR = 25
49 , DOMXPATHEXCEPTION_ERRX = 26
50 , INVALID_EXPRESSION_ERR = 27
51 , TYPE_ERR = 28
52 , NO_RESULT_ERR = 29
53 , Writer_NestedCDATA = 30
54 , Writer_NotRepresentChar = 31
55 , Writer_NotRecognizedType = 32
56 , LSParser_ParseInProgress = 33
57 , LSParser_ParsingAborted = 34
58 , LSParser_ParsingFailed = 35
59 , F_HighBounds = 36
60 , W_LowBounds = 37
61 , W_HighBounds = 38
62 , E_LowBounds = 39
63 , E_HighBounds = 40
64 };
65
66 static bool isFatal(const XMLDOMMsg::Codes toCheck)
67 {
68 return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
69 }
70
71 static bool isWarning(const XMLDOMMsg::Codes toCheck)
72 {
73 return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
74 }
75
76 static bool isError(const XMLDOMMsg::Codes toCheck)
77 {
78 return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
79 }
80
81 static XMLErrorReporter::ErrTypes errorType(const XMLDOMMsg::Codes toCheck)
82 {
83 if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
84 return XMLErrorReporter::ErrType_Warning;
85 else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
86 return XMLErrorReporter::ErrType_Fatal;
87 else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
88 return XMLErrorReporter::ErrType_Error;
89 return XMLErrorReporter::ErrTypes_Unknown;
90 }
91 static DOMError::ErrorSeverity DOMErrorType(const XMLDOMMsg::Codes toCheck)
92 {
93 if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
94 return DOMError::DOM_SEVERITY_WARNING;
95 else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
96 return DOMError::DOM_SEVERITY_FATAL_ERROR;
97 else return DOMError::DOM_SEVERITY_ERROR;
98 }
99
100private:
101 // -----------------------------------------------------------------------
102 // Unimplemented constructors and operators
103 // -----------------------------------------------------------------------
104 XMLDOMMsg();
105};
106
107#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
108# pragma GCC diagnostic pop
109#endif
110
111 XERCES_CPP_NAMESPACE_END
112
113#endif
114
DOMError.hpp
XMLErrorReporter.hpp
XercesDefs.hpp
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
DOMError::ErrorSeverity
ErrorSeverity
The severity of the error described by the DOMError.
Definition DOMError.hpp:100
DOMError::DOM_SEVERITY_FATAL_ERROR
@ DOM_SEVERITY_FATAL_ERROR
Definition DOMError.hpp:103
DOMError::DOM_SEVERITY_ERROR
@ DOM_SEVERITY_ERROR
Definition DOMError.hpp:102
DOMError::DOM_SEVERITY_WARNING
@ DOM_SEVERITY_WARNING
Definition DOMError.hpp:101
XMLDOMMsg
Definition XMLDOMMsg.hpp:19
XMLDOMMsg::DOMErrorType
static DOMError::ErrorSeverity DOMErrorType(const XMLDOMMsg::Codes toCheck)
Definition XMLDOMMsg.hpp:91
XMLDOMMsg::isError
static bool isError(const XMLDOMMsg::Codes toCheck)
Definition XMLDOMMsg.hpp:76
XMLDOMMsg::Codes
Codes
Definition XMLDOMMsg.hpp:22
XMLDOMMsg::LSParser_ParsingAborted
@ LSParser_ParsingAborted
Definition XMLDOMMsg.hpp:57
XMLDOMMsg::INUSE_ATTRIBUTE_ERR
@ INUSE_ATTRIBUTE_ERR
Definition XMLDOMMsg.hpp:35
XMLDOMMsg::E_LowBounds
@ E_LowBounds
Definition XMLDOMMsg.hpp:62
XMLDOMMsg::W_HighBounds
@ W_HighBounds
Definition XMLDOMMsg.hpp:61
XMLDOMMsg::WRONG_DOCUMENT_ERR
@ WRONG_DOCUMENT_ERR
Definition XMLDOMMsg.hpp:29
XMLDOMMsg::NO_RESULT_ERR
@ NO_RESULT_ERR
Definition XMLDOMMsg.hpp:52
XMLDOMMsg::TYPE_MISMATCH_ERR
@ TYPE_MISMATCH_ERR
Definition XMLDOMMsg.hpp:42
XMLDOMMsg::INDEX_SIZE_ERR
@ INDEX_SIZE_ERR
Definition XMLDOMMsg.hpp:26
XMLDOMMsg::INVALID_STATE_ERR
@ INVALID_STATE_ERR
Definition XMLDOMMsg.hpp:36
XMLDOMMsg::Writer_NotRecognizedType
@ Writer_NotRecognizedType
Definition XMLDOMMsg.hpp:55
XMLDOMMsg::VALIDATION_ERR
@ VALIDATION_ERR
Definition XMLDOMMsg.hpp:41
XMLDOMMsg::INVALID_ACCESS_ERR
@ INVALID_ACCESS_ERR
Definition XMLDOMMsg.hpp:40
XMLDOMMsg::NOT_FOUND_ERR
@ NOT_FOUND_ERR
Definition XMLDOMMsg.hpp:33
XMLDOMMsg::NoError
@ NoError
Definition XMLDOMMsg.hpp:23
XMLDOMMsg::DOMXPATHEXCEPTION_ERRX
@ DOMXPATHEXCEPTION_ERRX
Definition XMLDOMMsg.hpp:49
XMLDOMMsg::BAD_BOUNDARYPOINTS_ERR
@ BAD_BOUNDARYPOINTS_ERR
Definition XMLDOMMsg.hpp:44
XMLDOMMsg::SERIALIZE_ERR
@ SERIALIZE_ERR
Definition XMLDOMMsg.hpp:48
XMLDOMMsg::LSParser_ParseInProgress
@ LSParser_ParseInProgress
Definition XMLDOMMsg.hpp:56
XMLDOMMsg::INVALID_EXPRESSION_ERR
@ INVALID_EXPRESSION_ERR
Definition XMLDOMMsg.hpp:50
XMLDOMMsg::NO_MODIFICATION_ALLOWED_ERR
@ NO_MODIFICATION_ALLOWED_ERR
Definition XMLDOMMsg.hpp:32
XMLDOMMsg::INVALID_CHARACTER_ERR
@ INVALID_CHARACTER_ERR
Definition XMLDOMMsg.hpp:30
XMLDOMMsg::Writer_NestedCDATA
@ Writer_NestedCDATA
Definition XMLDOMMsg.hpp:53
XMLDOMMsg::W_LowBounds
@ W_LowBounds
Definition XMLDOMMsg.hpp:60
XMLDOMMsg::DOMEXCEPTION_ERRX
@ DOMEXCEPTION_ERRX
Definition XMLDOMMsg.hpp:25
XMLDOMMsg::Writer_NotRepresentChar
@ Writer_NotRepresentChar
Definition XMLDOMMsg.hpp:54
XMLDOMMsg::E_HighBounds
@ E_HighBounds
Definition XMLDOMMsg.hpp:63
XMLDOMMsg::NAMESPACE_ERR
@ NAMESPACE_ERR
Definition XMLDOMMsg.hpp:39
XMLDOMMsg::NOT_SUPPORTED_ERR
@ NOT_SUPPORTED_ERR
Definition XMLDOMMsg.hpp:34
XMLDOMMsg::F_HighBounds
@ F_HighBounds
Definition XMLDOMMsg.hpp:59
XMLDOMMsg::F_LowBounds
@ F_LowBounds
Definition XMLDOMMsg.hpp:24
XMLDOMMsg::TYPE_ERR
@ TYPE_ERR
Definition XMLDOMMsg.hpp:51
XMLDOMMsg::PARSE_ERR
@ PARSE_ERR
Definition XMLDOMMsg.hpp:47
XMLDOMMsg::NO_DATA_ALLOWED_ERR
@ NO_DATA_ALLOWED_ERR
Definition XMLDOMMsg.hpp:31
XMLDOMMsg::DOMLSEXCEPTION_ERRX
@ DOMLSEXCEPTION_ERRX
Definition XMLDOMMsg.hpp:46
XMLDOMMsg::DOMSTRING_SIZE_ERR
@ DOMSTRING_SIZE_ERR
Definition XMLDOMMsg.hpp:27
XMLDOMMsg::INVALID_MODIFICATION_ERR
@ INVALID_MODIFICATION_ERR
Definition XMLDOMMsg.hpp:38
XMLDOMMsg::INVALID_NODE_TYPE_ERR
@ INVALID_NODE_TYPE_ERR
Definition XMLDOMMsg.hpp:45
XMLDOMMsg::DOMRANGEEXCEPTION_ERRX
@ DOMRANGEEXCEPTION_ERRX
Definition XMLDOMMsg.hpp:43
XMLDOMMsg::SYNTAX_ERR
@ SYNTAX_ERR
Definition XMLDOMMsg.hpp:37
XMLDOMMsg::HIERARCHY_REQUEST_ERR
@ HIERARCHY_REQUEST_ERR
Definition XMLDOMMsg.hpp:28
XMLDOMMsg::LSParser_ParsingFailed
@ LSParser_ParsingFailed
Definition XMLDOMMsg.hpp:58
XMLDOMMsg::errorType
static XMLErrorReporter::ErrTypes errorType(const XMLDOMMsg::Codes toCheck)
Definition XMLDOMMsg.hpp:81
XMLDOMMsg::isWarning
static bool isWarning(const XMLDOMMsg::Codes toCheck)
Definition XMLDOMMsg.hpp:71
XMLDOMMsg::isFatal
static bool isFatal(const XMLDOMMsg::Codes toCheck)
Definition XMLDOMMsg.hpp:66
XMLErrorReporter::ErrTypes
ErrTypes
Definition XMLErrorReporter.hpp:49
XMLErrorReporter::ErrTypes_Unknown
@ ErrTypes_Unknown
Definition XMLErrorReporter.hpp:54
XMLErrorReporter::ErrType_Error
@ ErrType_Error
Definition XMLErrorReporter.hpp:51
XMLErrorReporter::ErrType_Warning
@ ErrType_Warning
Definition XMLErrorReporter.hpp:50
XMLErrorReporter::ErrType_Fatal
@ ErrType_Fatal
Definition XMLErrorReporter.hpp:52