Author: jsdelfino
Date: Sun Sep 10 10:05:13 2006
New Revision: 441972
URL: http://svn.apache.org/viewvc?view=rev&rev=441972
Log:
Throw SystemConfigurationExceptions and added more diagnostic info to help
diagnose when a shared library cannot be loaded
Modified:
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/File.cpp
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Library.cpp
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Logging.h
Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/File.cpp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/File.cpp?view=diff&rev=441972&r1=441971&r2=441972
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/File.cpp
(original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/File.cpp Sun
Sep 10 10:05:13 2006
@@ -69,7 +69,7 @@
{
if (size() <= index)
{
- throw TuscanyRuntimeException("Files::operator[] index out of
bounds");
+ throw SystemConfigurationException("Files::operator[] index
out of bounds");
}
FILES::iterator iter = files.begin();
Modified:
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Library.cpp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Library.cpp?view=diff&rev=441972&r1=441971&r2=441972
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Library.cpp
(original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Library.cpp Sun
Sep 10 10:05:13 2006
@@ -118,8 +118,8 @@
#endif
if (hDLL == NULL)
{
- LOGERROR_1(1, "Library::load: Unable to load library %s",
name.c_str());
- throw TuscanyRuntimeException(msg.c_str());
+ LOGERROR(1, msg.c_str());
+ throw SystemConfigurationException(msg.c_str());
}
}
Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Logging.h
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Logging.h?view=diff&rev=441972&r1=441971&r2=441972
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Logging.h
(original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Logging.h Sun
Sep 10 10:05:13 2006
@@ -42,6 +42,10 @@
if (tuscany::sca::Logger::loggingLevel >= level) \
tuscany::sca::Logger::logArgs(level, message, arg1, arg2);
+#define LOGINFO_3(level, message, arg1, arg2, arg3) \
+if (tuscany::sca::Logger::loggingLevel >= level) \
+tuscany::sca::Logger::logArgs(level, message, arg1, arg2, arg3);
+
#define LOGERROR(level, message) \
if (tuscany::sca::Logger::loggingLevel >= level) \
tuscany::sca::Logger::log(level, message);
@@ -53,5 +57,9 @@
#define LOGERROR_2(level, message, arg1, arg2) \
if (tuscany::sca::Logger::loggingLevel >= level) \
tuscany::sca::Logger::logArgs(level, message, arg1, arg2);
+
+#define LOGERROR_3(level, message, arg1, arg2, arg3) \
+if (tuscany::sca::Logger::loggingLevel >= level) \
+tuscany::sca::Logger::logArgs(level, message, arg1, arg2, arg3);
#endif // tuscany_sca_util_logging_h
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]