You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/01/25 23:32:35 UTC
cvs commit: xml-xerces/c/src/util/Platforms/IRIX IRIXPlatformUtils.cpp
aruna1 00/01/25 14:32:35
Modified: c/src/util/Platforms/IRIX IRIXPlatformUtils.cpp
Log:
Updated panic information
Revision Changes Path
1.4 +20 -20 xml-xerces/c/src/util/Platforms/IRIX/IRIXPlatformUtils.cpp
Index: IRIXPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/IRIX/IRIXPlatformUtils.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IRIXPlatformUtils.cpp 1999/12/18 00:54:43 1.3
+++ IRIXPlatformUtils.cpp 2000/01/25 22:32:35 1.4
@@ -56,6 +56,9 @@
/**
* $Log: IRIXPlatformUtils.cpp,v $
+ * Revision 1.4 2000/01/25 22:32:35 aruna1
+ * Updated panic information
+ *
* Revision 1.3 1999/12/18 00:54:43 rahulj
* Merged in changes for IRIX submitted by Marc Stuessel
*
@@ -366,26 +369,23 @@
// ---------------------------------------------------------------------------
void XMLPlatformUtils::panic(const PanicReasons reason)
{
- //
- // We just print a message and exit
- //
-
- fprintf(stderr,
- "The Xerces-C system could not be initialized.\n");
- fprintf(stderr,
- "If you are using ICU, then the most likely reason for this failure\n");
- fprintf(stderr,
- "is the inability to find the ICU coverter files. The converter files\n");
- fprintf(stderr,
- "have the extension .cnv and exist in a directory 'icu/data' relative\n");
- fprintf(stderr,
- "to the Xerces-C shared library. If you have installed the converter files\n");
- fprintf(stderr,
- "in a different location, you need to set up the environment variable\n");
- fprintf(stderr,
- "'ICU_DATA' to point directly to the directory containing the\n");
- fprintf(stderr,
- "converter files.\n");
+ const char* reasonStr = "Unknown reason";
+ if (reason == Panic_NoTransService)
+ reasonStr = "Could not load a transcoding service";
+ else if (reason == Panic_NoDefTranscoder)
+ reasonStr = "Could not load a local code page transcoder";
+ else if (reason == Panic_CantFindLib)
+ reasonStr = "Could not find the xerces-c DLL";
+ else if (reason == Panic_UnknownMsgDomain)
+ reasonStr = "Unknown message domain";
+ else if (reason == Panic_CantLoadMsgDomain)
+ reasonStr = "Cannot load message domain";
+ else if (reason == Panic_SynchronizationErr)
+ reasonStr = "Cannot synchronize system or mutex";
+ else if (reason == Panic_SystemInit)
+ reasonStr = "Cannot initialize the system or mutex";
+
+ fprintf(stderr, "%s\n", reasonStr);
exit(-1);
}