diff --git a/src/xercesc/util/Platforms/AIX/AIXPlatformUtils.cpp b/src/xercesc/util/Platforms/AIX/AIXPlatformUtils.cpp index 3d03699dfafeb0a92d7d697b1ae503fd49d3a1d9..b579c24473e2d06f8e835c91d6e4f2a1c7be8233 100644 --- a/src/xercesc/util/Platforms/AIX/AIXPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/AIX/AIXPlatformUtils.cpp @@ -299,8 +299,7 @@ XMLPlatformUtils::writeBufferToFile( FileHandle const theFile if(ferror((FILE*)theFile)) { - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); } if (bytesWritten < toWrite) //incomplete write diff --git a/src/xercesc/util/Platforms/HPUX/HPPlatformUtils.cpp b/src/xercesc/util/Platforms/HPUX/HPPlatformUtils.cpp index bc0c8f4aaf5457767241fac42da50edaa266292c..60c10fa36f77bffbefe14b1b55d0b93ab80062d9 100644 --- a/src/xercesc/util/Platforms/HPUX/HPPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/HPUX/HPPlatformUtils.cpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.6 2002/07/15 21:52:48 peiyongz + * CouldNotWriteToFile + * * Revision 1.5 2002/06/24 15:55:03 peiyongz * Change from James Berry( jberry@criticalpath.com) * @@ -416,8 +419,7 @@ XMLPlatformUtils::writeBufferToFile( FileHandle const theFile if(ferror((FILE*)theFile)) { - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); } if (bytesWritten < toWrite) //incomplete write diff --git a/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp b/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp index 4933a383ce9319b6bbc716ba53c76dc9feeecaae..b5f71fe0643fc8db518d259807101adb5d6d0bd8 100644 --- a/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.6 2002/07/15 21:53:04 peiyongz + * CouldNotWriteToFile + * * Revision 1.5 2002/06/24 15:55:21 peiyongz * Change from James Berry( jberry@criticalpath.com) * @@ -414,8 +417,7 @@ XMLPlatformUtils::writeBufferToFile( FileHandle const theFile if(ferror((FILE*)theFile)) { - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); } if (bytesWritten < toWrite) //incomplete write diff --git a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp index 90e49d9311703c61f564520b8dd05dee39de4959..43333f85fa1d3294f2a2c95f10348e4e8ab7a1d5 100644 --- a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp @@ -456,8 +456,7 @@ XMLMacFile::write(const long byteCount, const XMLByte* const buffer) if (!mFileValid) { - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); } if (gHasHFSPlusAPIs) @@ -475,8 +474,7 @@ XMLMacFile::write(const long byteCount, const XMLByte* const buffer) if ((err != noErr && err != eofErr) || (bytesWritten != byteCount)) { - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); } } diff --git a/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp b/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp index dd62b327a9f90813b2ca5049bcfebc2b3066dbca..79dbc59c79d8dbc16a88377208781266f7c23d0a 100644 --- a/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp @@ -318,8 +318,7 @@ XMLPlatformUtils::writeBufferToFile( FileHandle const theFile if(ferror((FILE*)theFile)) { - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); } if (bytesWritten < toWrite) //incomplete write diff --git a/src/xercesc/util/Platforms/Win32/Win32PlatformUtils.cpp b/src/xercesc/util/Platforms/Win32/Win32PlatformUtils.cpp index 095cea039d88f4ce0fb280daf8c23b1e2547e987..6e1b5f37c2ca5737136e8ea007e44ae180ac71ab 100644 --- a/src/xercesc/util/Platforms/Win32/Win32PlatformUtils.cpp +++ b/src/xercesc/util/Platforms/Win32/Win32PlatformUtils.cpp @@ -526,8 +526,7 @@ XMLPlatformUtils::writeBufferToFile( FileHandle const theFile while (true) { if (!::WriteFile(theFile, tmpFlush, toWrite, &bytesWritten, 0)) - ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotReadFromFile); - //ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); + ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile); if (bytesWritten < (unsigned long) toWrite) //incomplete write {