Date: Monday, November 28, 2005 @ 19:48:29
Author: marc
Path: /cvsroot/carob/carob/test
Modified: CarobProtector.hpp (1.6 -> 1.7)
now using stacktraceelement.toWString()
--------------------+
CarobProtector.hpp | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
Index: carob/test/CarobProtector.hpp
diff -u carob/test/CarobProtector.hpp:1.6 carob/test/CarobProtector.hpp:1.7
--- carob/test/CarobProtector.hpp:1.6 Mon Nov 28 19:23:55 2005
+++ carob/test/CarobProtector.hpp Mon Nov 28 19:48:29 2005
@@ -26,11 +26,11 @@
#include <cppunit/Message.h>
-static const wstring BEPREFIX(L"BackendException catched by CarobProtector: ");
-static const wstring COPREFIX(L"ControllerException catched by CarobProtector:
");
-static const wstring CAPREFIX(L"CarobException catched by CarobProtector: ");
-static const wstring UEPREFIX(L"UnexpectedException catched by CarobProtector:
");
-static const wstring NEXTPREFIX(L" next exception :
");
+static const wstring BEPREFIX(L"BackendException: ");
+static const wstring COPREFIX(L"ControllerException: ");
+static const wstring CAPREFIX(L"CarobException: ");
+static const wstring UEPREFIX(L"UnexpectedException: ");
+static const wstring NEXTPREFIX(L" next CarobException : ");
static void cerrStackTrace(const wstring& prefix, const CarobException& cex)
@@ -39,19 +39,16 @@
wcerr << prefix << "remote stack: " << endl;
const StackTrace& st = cex.getStackTrace();
for (StackTrace::const_iterator s = st.begin(); s != st.end(); s++)
- std::wcerr << prefix // TODO: need a toString() method here
- << s->declaringClass << ":" << s->methodName << "(...)" <<
std::endl;;
+ std::wcerr << prefix << s->toWString() << std::endl;;
}
static void cerrBackTrace(const wstring& prefix, const CarobException& cex)
{
-#ifdef GLIB_BACKTRACE
const BackTrace& stvect = cex.getBackTrace();
for (BackTrace::const_iterator btframe = stvect.begin(); btframe !=
stvect.end(); btframe++) {
std::wcerr << BEPREFIX; std::cerr << *btframe << std::endl;
}
-#endif
}
static void cerrCarobExceptionChain(const wstring& prefix, const
CarobException& ce)
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits