You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/02/02 12:40:05 UTC

svn commit: r374367 - /xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/XSDErrorReporter.cpp

Author: cargilld
Date: Thu Feb  2 03:40:02 2006
New Revision: 374367

URL: http://svn.apache.org/viewcvs?rev=374367&view=rev
Log:
Use errType of Error to be consistent with previous behaviour.

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/XSDErrorReporter.cpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/XSDErrorReporter.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/XSDErrorReporter.cpp?rev=374367&r1=374366&r2=374367&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/XSDErrorReporter.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/validators/schema/XSDErrorReporter.cpp Thu Feb  2 03:40:02 2006
@@ -230,7 +230,13 @@
 {
     const XMLCh* const  errText = except.getMessage();
     const unsigned int  toEmit = except.getCode();
-    XMLErrorReporter::ErrTypes errType = XMLErrs::errorType((XMLErrs::Codes) toEmit);
+    //Before the code was modified to call this routine it used to use
+    //the XMLErrs::DisplayErrorMessage error message, which is just {'0'}
+    //and that error message has errType of Error.  So to be consistent
+    //with previous behaviour set the errType to be Error instead of
+    //getting the error type off of the exception.
+    //XMLErrorReporter::ErrTypes errType = XMLErrs::errorType((XMLErrs::Codes) toEmit);
+    XMLErrorReporter::ErrTypes errType = XMLErrorReporter::ErrType_Error;
 
     if (fErrorReporter)
         fErrorReporter->error(toEmit, XMLUni::fgExceptDomain, errType, errText, aLocator->getSystemId(),
@@ -238,8 +244,8 @@
                               aLocator->getColumnNumber());
 
     // Bail out if its fatal an we are to give up on the first fatal error
-    if (errType == XMLErrorReporter::ErrType_Fatal && fExitOnFirstFatal)
-        throw (XMLErrs::Codes) toEmit;
+    //if (errType == XMLErrorReporter::ErrType_Fatal && fExitOnFirstFatal)
+    //    throw (XMLErrs::Codes) toEmit;
 }
 
 XERCES_CPP_NAMESPACE_END



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org