XMLDOMMsg.hpp
Go to the documentation of this file.
// This file is generated, don't edit it!!
#if !defined(XERCESC_INCLUDE_GUARD_ERRHEADER_XMLDOMMsg)
#define XERCESC_INCLUDE_GUARD_ERRHEADER_XMLDOMMsg
#include <xercesc/framework/XMLErrorReporter.hpp>
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/dom/DOMError.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class XMLDOMMsg
{
public :
enum Codes
{
NoError = 0
, F_LowBounds = 1
, DOMEXCEPTION_ERRX = 2
, INDEX_SIZE_ERR = 3
, DOMSTRING_SIZE_ERR = 4
, HIERARCHY_REQUEST_ERR = 5
, WRONG_DOCUMENT_ERR = 6
, INVALID_CHARACTER_ERR = 7
, NO_DATA_ALLOWED_ERR = 8
, NO_MODIFICATION_ALLOWED_ERR = 9
, NOT_FOUND_ERR = 10
, NOT_SUPPORTED_ERR = 11
, INUSE_ATTRIBUTE_ERR = 12
, INVALID_STATE_ERR = 13
, SYNTAX_ERR = 14
, INVALID_MODIFICATION_ERR = 15
, NAMESPACE_ERR = 16
, INVALID_ACCESS_ERR = 17
, VALIDATION_ERR = 18
, TYPE_MISMATCH_ERR = 19
, DOMRANGEEXCEPTION_ERRX = 20
, BAD_BOUNDARYPOINTS_ERR = 21
, INVALID_NODE_TYPE_ERR = 22
, DOMLSEXCEPTION_ERRX = 23
, PARSE_ERR = 24
, SERIALIZE_ERR = 25
, DOMXPATHEXCEPTION_ERRX = 26
, INVALID_EXPRESSION_ERR = 27
, TYPE_ERR = 28
, NO_RESULT_ERR = 29
, Writer_NestedCDATA = 30
, Writer_NotRepresentChar = 31
, Writer_NotRecognizedType = 32
, LSParser_ParseInProgress = 33
, LSParser_ParsingAborted = 34
, LSParser_ParsingFailed = 35
, F_HighBounds = 36
, W_LowBounds = 37
, W_HighBounds = 38
, E_LowBounds = 39
, E_HighBounds = 40
};
static bool isFatal(const XMLDOMMsg::Codes toCheck)
{
return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
}
static bool isWarning(const XMLDOMMsg::Codes toCheck)
{
return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
}
static bool isError(const XMLDOMMsg::Codes toCheck)
{
return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
}
static XMLErrorReporter::ErrTypes errorType(const XMLDOMMsg::Codes toCheck)
{
if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
return XMLErrorReporter::ErrType_Warning;
else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
return XMLErrorReporter::ErrType_Fatal;
else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
return XMLErrorReporter::ErrType_Error;
return XMLErrorReporter::ErrTypes_Unknown;
}
static DOMError::ErrorSeverity DOMErrorType(const XMLDOMMsg::Codes toCheck)
{
if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
return DOMError::DOM_SEVERITY_WARNING;
else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
return DOMError::DOM_SEVERITY_FATAL_ERROR;
else return DOMError::DOM_SEVERITY_ERROR;
}
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XMLDOMMsg();
};
XERCES_CPP_NAMESPACE_END
#endif
XMLDOMMsg::TYPE_MISMATCH_ERR
Definition: XMLDOMMsg.hpp:36
XMLDOMMsg::BAD_BOUNDARYPOINTS_ERR
Definition: XMLDOMMsg.hpp:38
XMLDOMMsg::isFatal
static bool isFatal(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:60
XMLDOMMsg::isWarning
static bool isWarning(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:65
DOMError::DOM_SEVERITY_WARNING
Definition: DOMError.hpp:101
XMLDOMMsg::LSParser_ParseInProgress
Definition: XMLDOMMsg.hpp:50
XMLErrorReporter::ErrTypes_Unknown
Definition: XMLErrorReporter.hpp:54
XMLDOMMsg::NO_MODIFICATION_ALLOWED_ERR
Definition: XMLDOMMsg.hpp:26
XMLDOMMsg::DOMXPATHEXCEPTION_ERRX
Definition: XMLDOMMsg.hpp:43
XMLDOMMsg::Codes
Codes
Definition: XMLDOMMsg.hpp:15
XMLDOMMsg::W_LowBounds
Definition: XMLDOMMsg.hpp:54
XMLDOMMsg::VALIDATION_ERR
Definition: XMLDOMMsg.hpp:35
XMLDOMMsg::Writer_NotRecognizedType
Definition: XMLDOMMsg.hpp:49
XMLDOMMsg::INVALID_STATE_ERR
Definition: XMLDOMMsg.hpp:30
XMLDOMMsg::F_LowBounds
Definition: XMLDOMMsg.hpp:18
XMLDOMMsg::NO_RESULT_ERR
Definition: XMLDOMMsg.hpp:46
XercesDefs.hpp
XMLErrorReporter::ErrType_Warning
Definition: XMLErrorReporter.hpp:50
XMLErrorReporter::ErrType_Error
Definition: XMLErrorReporter.hpp:51
XMLDOMMsg::NO_DATA_ALLOWED_ERR
Definition: XMLDOMMsg.hpp:25
XMLDOMMsg::NoError
Definition: XMLDOMMsg.hpp:17
DOMError::ErrorSeverity
ErrorSeverity
The severity of the error described by the DOMError.
Definition: DOMError.hpp:99
XMLErrorReporter::ErrTypes
ErrTypes
Definition: XMLErrorReporter.hpp:48
XMLDOMMsg::INUSE_ATTRIBUTE_ERR
Definition: XMLDOMMsg.hpp:29
DOMError::DOM_SEVERITY_ERROR
Definition: DOMError.hpp:102
XMLDOMMsg::INDEX_SIZE_ERR
Definition: XMLDOMMsg.hpp:20
XMLDOMMsg::SYNTAX_ERR
Definition: XMLDOMMsg.hpp:31
XMLDOMMsg::INVALID_MODIFICATION_ERR
Definition: XMLDOMMsg.hpp:32
XMLDOMMsg::LSParser_ParsingAborted
Definition: XMLDOMMsg.hpp:51
XMLDOMMsg::NOT_SUPPORTED_ERR
Definition: XMLDOMMsg.hpp:28
XMLDOMMsg::INVALID_CHARACTER_ERR
Definition: XMLDOMMsg.hpp:24
XMLDOMMsg::E_HighBounds
Definition: XMLDOMMsg.hpp:57
XMLDOMMsg::F_HighBounds
Definition: XMLDOMMsg.hpp:53
XMLDOMMsg::DOMErrorType
static DOMError::ErrorSeverity DOMErrorType(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:85
XMLDOMMsg::WRONG_DOCUMENT_ERR
Definition: XMLDOMMsg.hpp:23
XMLErrorReporter::ErrType_Fatal
Definition: XMLErrorReporter.hpp:52
XMLDOMMsg::errorType
static XMLErrorReporter::ErrTypes errorType(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:75
XMLDOMMsg::Writer_NotRepresentChar
Definition: XMLDOMMsg.hpp:48
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLDOMMsg::W_HighBounds
Definition: XMLDOMMsg.hpp:55
XMLDOMMsg::HIERARCHY_REQUEST_ERR
Definition: XMLDOMMsg.hpp:22
XMLDOMMsg::DOMRANGEEXCEPTION_ERRX
Definition: XMLDOMMsg.hpp:37
XMLDOMMsg::INVALID_EXPRESSION_ERR
Definition: XMLDOMMsg.hpp:44
XMLDOMMsg::Writer_NestedCDATA
Definition: XMLDOMMsg.hpp:47
XMLDOMMsg::PARSE_ERR
Definition: XMLDOMMsg.hpp:41
XMLDOMMsg::INVALID_NODE_TYPE_ERR
Definition: XMLDOMMsg.hpp:39
XMLErrorReporter.hpp
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLDOMMsg::INVALID_ACCESS_ERR
Definition: XMLDOMMsg.hpp:34
XMLDOMMsg::TYPE_ERR
Definition: XMLDOMMsg.hpp:45
XMLDOMMsg
Definition: XMLDOMMsg.hpp:12
DOMError.hpp
XMLDOMMsg::E_LowBounds
Definition: XMLDOMMsg.hpp:56
XMLDOMMsg::DOMLSEXCEPTION_ERRX
Definition: XMLDOMMsg.hpp:40
XMLDOMMsg::NAMESPACE_ERR
Definition: XMLDOMMsg.hpp:33
XMLDOMMsg::DOMSTRING_SIZE_ERR
Definition: XMLDOMMsg.hpp:21
XMLDOMMsg::DOMEXCEPTION_ERRX
Definition: XMLDOMMsg.hpp:19
DOMError::DOM_SEVERITY_FATAL_ERROR
Definition: DOMError.hpp:103
XMLDOMMsg::isError
static bool isError(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:70
XMLDOMMsg::NOT_FOUND_ERR
Definition: XMLDOMMsg.hpp:27
XMLDOMMsg::SERIALIZE_ERR
Definition: XMLDOMMsg.hpp:42
XMLDOMMsg::LSParser_ParsingFailed
Definition: XMLDOMMsg.hpp:52