Date: Monday, November 28, 2005 @ 19:46:24
Author: marc
Path: /cvsroot/carob/carob/include
Modified: CarobException.hpp (1.14 -> 1.15)
implemented StackTraceElement.toWString() method
--------------------+
CarobException.hpp | 9 +++++++++
1 files changed, 9 insertions(+)
Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.14
carob/include/CarobException.hpp:1.15
--- carob/include/CarobException.hpp:1.14 Mon Nov 28 16:17:58 2005
+++ carob/include/CarobException.hpp Mon Nov 28 19:46:24 2005
@@ -24,6 +24,7 @@
#include <string>
#include <vector>
+#include <sstream>
#include "Common.hpp"
@@ -308,6 +309,14 @@
wstring methodName;
wstring fileName;
int32_t lineNumber;
+
+ wstring toWString() const
+ {
+ wostringstream oss;
+ oss << L"at " << declaringClass << L"." << methodName << L"(" << fileName
<< L":" << lineNumber << L")";
+ return oss.str();
+ }
+
};
#endif //_CAROBEXCEPTION_H_
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits