Xerces-C++
3.1.3
Main Page
Related Pages
Classes
Files
File List
File Members
src
xercesc
util
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
class
XMLDOMMsg
13
{
14
public
:
15
enum
Codes
16
{
17
NoError
= 0
18
,
F_LowBounds
= 1
19
,
DOMEXCEPTION_ERRX
= 2
20
,
INDEX_SIZE_ERR
= 3
21
,
DOMSTRING_SIZE_ERR
= 4
22
,
HIERARCHY_REQUEST_ERR
= 5
23
,
WRONG_DOCUMENT_ERR
= 6
24
,
INVALID_CHARACTER_ERR
= 7
25
,
NO_DATA_ALLOWED_ERR
= 8
26
,
NO_MODIFICATION_ALLOWED_ERR
= 9
27
,
NOT_FOUND_ERR
= 10
28
,
NOT_SUPPORTED_ERR
= 11
29
,
INUSE_ATTRIBUTE_ERR
= 12
30
,
INVALID_STATE_ERR
= 13
31
,
SYNTAX_ERR
= 14
32
,
INVALID_MODIFICATION_ERR
= 15
33
,
NAMESPACE_ERR
= 16
34
,
INVALID_ACCESS_ERR
= 17
35
,
VALIDATION_ERR
= 18
36
,
TYPE_MISMATCH_ERR
= 19
37
,
DOMRANGEEXCEPTION_ERRX
= 20
38
,
BAD_BOUNDARYPOINTS_ERR
= 21
39
,
INVALID_NODE_TYPE_ERR
= 22
40
,
DOMLSEXCEPTION_ERRX
= 23
41
,
PARSE_ERR
= 24
42
,
SERIALIZE_ERR
= 25
43
,
DOMXPATHEXCEPTION_ERRX
= 26
44
,
INVALID_EXPRESSION_ERR
= 27
45
,
TYPE_ERR
= 28
46
,
NO_RESULT_ERR
= 29
47
,
Writer_NestedCDATA
= 30
48
,
Writer_NotRepresentChar
= 31
49
,
Writer_NotRecognizedType
= 32
50
,
LSParser_ParseInProgress
= 33
51
,
LSParser_ParsingAborted
= 34
52
,
LSParser_ParsingFailed
= 35
53
,
F_HighBounds
= 36
54
,
W_LowBounds
= 37
55
,
W_HighBounds
= 38
56
,
E_LowBounds
= 39
57
,
E_HighBounds
= 40
58
};
59
60
static
bool
isFatal
(
const
XMLDOMMsg::Codes
toCheck)
61
{
62
return
((toCheck >=
F_LowBounds
) && (toCheck <=
F_HighBounds
));
63
}
64
65
static
bool
isWarning
(
const
XMLDOMMsg::Codes
toCheck)
66
{
67
return
((toCheck >=
W_LowBounds
) && (toCheck <=
W_HighBounds
));
68
}
69
70
static
bool
isError
(
const
XMLDOMMsg::Codes
toCheck)
71
{
72
return
((toCheck >=
E_LowBounds
) && (toCheck <=
E_HighBounds
));
73
}
74
75
static
XMLErrorReporter::ErrTypes
errorType
(
const
XMLDOMMsg::Codes
toCheck)
76
{
77
if
((toCheck >=
W_LowBounds
) && (toCheck <=
W_HighBounds
))
78
return
XMLErrorReporter::ErrType_Warning
;
79
else
if
((toCheck >=
F_LowBounds
) && (toCheck <=
F_HighBounds
))
80
return
XMLErrorReporter::ErrType_Fatal
;
81
else
if
((toCheck >=
E_LowBounds
) && (toCheck <=
E_HighBounds
))
82
return
XMLErrorReporter::ErrType_Error
;
83
return
XMLErrorReporter::ErrTypes_Unknown
;
84
}
85
static
DOMError::ErrorSeverity
DOMErrorType
(
const
XMLDOMMsg::Codes
toCheck)
86
{
87
if
((toCheck >=
W_LowBounds
) && (toCheck <=
W_HighBounds
))
88
return
DOMError::DOM_SEVERITY_WARNING
;
89
else
if
((toCheck >=
F_LowBounds
) && (toCheck <=
F_HighBounds
))
90
return
DOMError::DOM_SEVERITY_FATAL_ERROR
;
91
else
return
DOMError::DOM_SEVERITY_ERROR
;
92
}
93
94
private
:
95
// -----------------------------------------------------------------------
96
// Unimplemented constructors and operators
97
// -----------------------------------------------------------------------
98
XMLDOMMsg
();
99
};
100
101
XERCES_CPP_NAMESPACE_END
102
103
#endif
104
Generated on Mon Feb 1 2016 13:04:19 for Xerces-C++ by
1.8.1.2