You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/09/18 21:36:29 UTC
cvs commit: xml-xerces/c/src/xercesc/framework XMLValidityCodes.hpp
peiyongz 2003/09/18 12:36:29
Modified: c/src/xercesc/framework XMLValidityCodes.hpp
Log:
Serialization related exception
Revision Changes Path
1.7 +9 -0 xml-xerces/c/src/xercesc/framework/XMLValidityCodes.hpp
Index: XMLValidityCodes.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLValidityCodes.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLValidityCodes.hpp 28 Apr 2003 23:32:54 -0000 1.6
+++ XMLValidityCodes.hpp 18 Sep 2003 19:36:29 -0000 1.7
@@ -5,6 +5,7 @@
#include <xercesc/framework/XMLErrorReporter.hpp>
#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOMError.hpp>
XERCES_CPP_NAMESPACE_BEGIN
@@ -152,6 +153,14 @@
else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
return XMLErrorReporter::ErrType_Error;
return XMLErrorReporter::ErrTypes_Unknown;
+ }
+ static DOMError::ErrorSeverity DOMErrorType(const XMLValid::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;
}
};
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org