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/03/17 22:29:12 UTC

svn commit: r386721 - in /xerces/c/branches/xerces-2.7/src/xercesc/internal: WFXMLScanner.cpp XMLScanner.cpp

Author: cargilld
Date: Fri Mar 17 13:29:09 2006
New Revision: 386721

URL: http://svn.apache.org/viewcvs?rev=386721&view=rev
Log:
Display actual errorCode when reporting an error.

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/internal/WFXMLScanner.cpp
    xerces/c/branches/xerces-2.7/src/xercesc/internal/XMLScanner.cpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/internal/WFXMLScanner.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/internal/WFXMLScanner.cpp?rev=386721&r1=386720&r2=386721&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/internal/WFXMLScanner.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/internal/WFXMLScanner.cpp Fri Mar 17 13:29:09 2006
@@ -198,6 +198,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Warning
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -205,6 +206,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Fatal
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -212,6 +214,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Error
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -366,6 +369,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Warning
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -373,6 +377,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Fatal
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -380,6 +385,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Error
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );

Modified: xerces/c/branches/xerces-2.7/src/xercesc/internal/XMLScanner.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/internal/XMLScanner.cpp?rev=386721&r1=386720&r2=386721&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/internal/XMLScanner.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/internal/XMLScanner.cpp Fri Mar 17 13:29:09 2006
@@ -378,6 +378,7 @@
                     emitError
                     (
                         XMLErrs::XMLException_Fatal
+                        , e.getCode()
                         , e.getType()
                         , e.getMessage()
                     );
@@ -392,6 +393,7 @@
                     emitError
                     (
                         XMLErrs::XMLException_Fatal
+                        , e.getCode()
                         , e.getType()
                         , e.getMessage()
                     );
@@ -413,6 +415,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Fatal
+                    , e.getCode()
                     , e.getType()
                     , e.getMessage()
                 );
@@ -429,6 +432,7 @@
             emitError
             (
                 XMLErrs::XMLException_Warning
+                , excToCatch.getCode()
                 , excToCatch.getType()
                 , excToCatch.getMessage()
             );
@@ -436,6 +440,7 @@
             emitError
             (
                 XMLErrs::XMLException_Fatal
+                , excToCatch.getCode()
                 , excToCatch.getType()
                 , excToCatch.getMessage()
             );
@@ -443,6 +448,7 @@
             emitError
             (
                 XMLErrs::XMLException_Error
+                , excToCatch.getCode()
                 , excToCatch.getType()
                 , excToCatch.getMessage()
             );
@@ -491,6 +497,7 @@
                     emitError
                     (
                         XMLErrs::XMLException_Fatal
+                        , e.getCode()
                         , e.getType()
                         , e.getMessage()
                     );
@@ -505,6 +512,7 @@
                     emitError
                     (
                         XMLErrs::XMLException_Fatal
+                        , e.getCode()
                         , e.getType()
                         , e.getMessage()
                     );
@@ -525,6 +533,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Fatal
+                    , e.getCode()
                     , e.getType()
                     , e.getMessage()
                 );
@@ -541,6 +550,7 @@
             emitError
             (
                 XMLErrs::XMLException_Warning
+                , excToCatch.getCode()
                 , excToCatch.getType()
                 , excToCatch.getMessage()
             );
@@ -548,6 +558,7 @@
             emitError
             (
                 XMLErrs::XMLException_Fatal
+                , excToCatch.getCode()
                 , excToCatch.getType()
                 , excToCatch.getMessage()
             );
@@ -555,6 +566,7 @@
             emitError
             (
                 XMLErrs::XMLException_Error
+                , excToCatch.getCode()
                 , excToCatch.getType()
                 , excToCatch.getMessage()
             );
@@ -632,6 +644,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Warning
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -639,6 +652,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Fatal
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -646,6 +660,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Error
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -1743,6 +1758,7 @@
                         emitError
                         (
                             XMLErrs::XMLException_Fatal
+                            , e.getCode()
                             , e.getType()
                             , e.getMessage()
                         );
@@ -1757,6 +1773,7 @@
                         emitError
                         (
                             XMLErrs::XMLException_Fatal
+                            , e.getCode()
                             , e.getType()
                             , e.getMessage()
                         );
@@ -1778,6 +1795,7 @@
                     emitError
                     (
                         XMLErrs::XMLException_Fatal
+                        , e.getCode()
                         , e.getType()
                         , e.getMessage()
                     );
@@ -1794,6 +1812,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Warning
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -1801,6 +1820,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Fatal
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );
@@ -1808,6 +1828,7 @@
                 emitError
                 (
                     XMLErrs::XMLException_Error
+                    , excToCatch.getCode()
                     , excToCatch.getType()
                     , excToCatch.getMessage()
                 );



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