tng         2002/11/27 10:05:38

  Modified:    c/src/xercesc/validators/schema XSDErrorReporter.cpp
  Log:
  Schema Fix: cast the toEmit back to XMLErrs:Codes so that it can be caught by the 
Scanner properly.
  
  Revision  Changes    Path
  1.6       +5 -2      xml-xerces/c/src/xercesc/validators/schema/XSDErrorReporter.cpp
  
  Index: XSDErrorReporter.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/XSDErrorReporter.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XSDErrorReporter.cpp      15 Nov 2002 21:58:04 -0000      1.5
  +++ XSDErrorReporter.cpp      27 Nov 2002 18:05:38 -0000      1.6
  @@ -56,6 +56,9 @@
   
   /**
     * $Log$
  +  * Revision 1.6  2002/11/27 18:05:38  tng
  +  * Schema Fix: cast the toEmit back to XMLErrs:Codes so that it can be caught by 
the Scanner properly.
  +  *
     * Revision 1.5  2002/11/15 21:58:04  peiyongz
     * Leave thread safety issue to message loader
     *
  @@ -226,7 +229,7 @@
   
       // Bail out if its fatal an we are to give up on the first fatal error
       if (errType == XMLErrorReporter::ErrType_Fatal && fExitOnFirstFatal)
  -        throw toEmit;
  +        throw (XMLErrs::Codes) toEmit;
   }
   
   void XSDErrorReporter::emitError(const unsigned int toEmit,
  @@ -268,7 +271,7 @@
   
       // Bail out if its fatal an we are to give up on the first fatal error
       if (errType == XMLErrorReporter::ErrType_Fatal && fExitOnFirstFatal)
  -        throw toEmit;
  +        throw (XMLErrs::Codes) toEmit;
   }
   
   XERCES_CPP_NAMESPACE_END
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to