tng 2002/12/06 08:41:10
Modified: c/src/xercesc/util/Platforms/MacOS MacOSPlatformUtils.cpp
Log:
Fix the error messages thrown from net accessor module.
Revision Changes Path
1.10 +6 -5
xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp
Index: MacOSPlatformUtils.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- MacOSPlatformUtils.cpp 13 Nov 2002 17:37:36 -0000 1.9
+++ MacOSPlatformUtils.cpp 6 Dec 2002 16:41:10 -0000 1.10
@@ -272,7 +272,7 @@
OSErr err = noErr;
if (mFileValid)
- ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile);
+ ThrowXML1(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile,
fileName);
if (gHasHFSPlusAPIs)
{
@@ -590,7 +590,7 @@
{
// Check to make sure the file system is in a state where we can use it
if (!gFileSystemCompatible)
- ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile);
+ ThrowXML1(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile,
fileName);
Janitor<XMLMacAbstractFile> file(new XMLMacFile());
file->open(fileName);
@@ -612,7 +612,7 @@
{
// Check to make sure the file system is in a state where we can use it
if (!gFileSystemCompatible)
- ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile);
+ ThrowXML1(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile,
fileName);
Janitor<XMLMacAbstractFile> file(new XMLMacFile());
file->openFileToWrite(fileName);
@@ -624,7 +624,8 @@
FileHandle
XMLPlatformUtils::openStdInHandle()
{
- ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile);
+ XMLCh stdinStr[] = {chLatin_s, chLatin_t, chLatin_d, chLatin_i, chLatin_n,
chNull};
+ ThrowXML1(XMLPlatformUtilsException, XMLExcepts::File_CouldNotOpenFile,
stdinStr);
return NULL;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]