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 2005/07/27 16:00:03 UTC
svn commit: r225513 -
/xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/QNX/QNXPlatformUtils.cpp
Author: cargilld
Date: Wed Jul 27 07:00:02 2005
New Revision: 225513
URL: http://svn.apache.org/viewcvs?rev=225513&view=rev
Log:
Update loadAMsgSet routines to have consisent behaviour.
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/QNX/QNXPlatformUtils.cpp
Modified: xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/QNX/QNXPlatformUtils.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/QNX/QNXPlatformUtils.cpp?rev=225513&r1=225512&r2=225513&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/QNX/QNXPlatformUtils.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/QNX/QNXPlatformUtils.cpp Wed Jul 27 07:00:02 2005
@@ -39,6 +39,7 @@
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUniDefs.hpp>
#include <xercesc/util/XMLUni.hpp>
+#include <xercesc/util/OutOfMemoryException.hpp>
//
@@ -377,11 +378,24 @@
//
XMLMsgLoader* XMLPlatformUtils::loadAMsgSet(const XMLCh* const msgDomain)
{
+ XMLMsgLoader* retVal;
+ try
+ {
#if defined (XML_USE_ICU_MESSAGELOADER)
- return new (fgMemoryManager) ICUMsgLoader(msgDomain);
+ retVal = new (fgMemoryManager) ICUMsgLoader(msgDomain);
#else
- return new (fgMemoryManager) InMemMsgLoader(msgDomain);
+ retVal = new (fgMemoryManager) InMemMsgLoader(msgDomain);
#endif
+ }
+ catch(const OutOfMemoryException&)
+ {
+ throw;
+ }
+ catch(...)
+ {
+ panic(PanicHandler::Panic_CantLoadMsgDomain);
+ }
+ return retVal;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org