PPCoin: More stack trace dump during serialization
authorSunny King <sunnyking9999@gmail.com>
Tue, 17 Apr 2012 18:59:10 +0000 (19:59 +0100)
committerSunny King <sunnyking9999@gmail.com>
Tue, 17 Apr 2012 18:59:10 +0000 (19:59 +0100)
src/serialize.h

index 8357c2e..dafc4b1 100644 (file)
@@ -345,7 +345,7 @@ public:
     void Unserialize(Stream& s, int, int=0)
     {
         if (pstr == NULL)
-            throw std::ios_base::failure("CFixedFieldString::Unserialize : trying to unserialize to const string");
+            THROW_WITH_STACKTRACE(std::ios_base::failure("CFixedFieldString::Unserialize : trying to unserialize to const string"));
         char pszBuf[LEN+1];
         s.read(pszBuf, LEN);
         pszBuf[LEN] = '\0';
@@ -1039,7 +1039,7 @@ public:
     {
         state |= bits;
         if (state & exceptmask)
-            throw std::ios_base::failure(psz);
+            THROW_WITH_STACKTRACE(std::ios_base::failure(psz));
     }
 
     bool eof() const             { return size() == 0; }
@@ -1256,7 +1256,7 @@ public:
     {
         state |= bits;
         if (state & exceptmask)
-            throw std::ios_base::failure(psz);
+            THROW_WITH_STACKTRACE(std::ios_base::failure(psz));
     }
 
     bool fail() const            { return state & (std::ios::badbit | std::ios::failbit); }