Author: jsdelfino
Date: Sat Dec 2 19:52:16 2006
New Revision: 481703
URL: http://svn.apache.org/viewvc?view=rev&rev=481703
Log:
I had added the whole C++ stack trace to Python exceptions, this makes them too
verbose and confusing, changed to do the same as in the other scripting
languages, now only reporting the exception class name and text, but this is
still more than before as initially they didn't contain any info from the
original exception.
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp?view=diff&rev=481703&r1=481702&r2=481703
==============================================================================
---
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp
(original)
+++
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp
Sat Dec 2 19:52:16 2006
@@ -355,14 +355,14 @@
// Invoke the wired service
pythonServiceProxy->invokeService(operation);
}
- catch(const TuscanyRuntimeException& e)
+ catch(TuscanyRuntimeException& ex)
{
- ostringstream msgs;
- msgs << "Exception whilst invoking the ";
- msgs << operationName.c_str();
- msgs << " operation on the service/reference: ";
- msgs << e;
- string msg = msgs.str();
+ string msg = "Exception whilst invoking the ";
+ msg += operationName.c_str();
+ msg += " operation on an SCA service/reference: ";
+ msg += ex.getEClassName();
+ msg += ": ";
+ msg += ex.getMessageText();
logwarning(msg.c_str());
PyErr_SetString(scaError, msg.c_str());
return NULL;
@@ -371,7 +371,7 @@
{
string msg = "Exception whilst invoking the ";
msg += operationName.c_str();
- msg += " operation on the service/reference";
+ msg += " operation on an SCA service/reference";
logwarning(msg.c_str());
PyErr_SetString(scaError, msg.c_str());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]