cpp: Log unexpected exceptions in TThreadPoolServer
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:43 +0000 (05:19 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:43 +0000 (05:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920672 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/server/TThreadPoolServer.cpp

index 0894cfa..6eea3db 100644 (file)
@@ -72,6 +72,9 @@ public:
     } catch (std::exception &x) {
       string errStr = string("TThreadPoolServer, std::exception: ") + x.what();
       GlobalOutput(errStr.c_str());
+    } catch (...) {
+      GlobalOutput("TThreadPoolServer, unexpected exception in "
+                   "TThreadPoolServer::Task::run()");
     }
 
     if (eventHandler != NULL) {