]> granicus.if.org Git - pdns/commitdiff
second batch of std::exception updates for new boost
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 15 Nov 2008 20:38:58 +0000 (20:38 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 15 Nov 2008 20:38:58 +0000 (20:38 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1275 d19b8d6e-7fed-0310-83ef-9ca221ded41b

14 files changed:
pdns/dnsdemog.cc
pdns/dnsgram.cc
pdns/dnspbench.cc
pdns/dnsproxy.cc
pdns/dnsreplay.cc
pdns/dnsscan.cc
pdns/dnswasher.cc
pdns/notify.cc
pdns/nproxy.cc
pdns/rcpgenerator.cc
pdns/receiver.cc
pdns/tcpreceiver.cc
pdns/webserver.cc
pdns/win32_pdns_recursor.cc

index 66b362274e156ea2ab2b5d2aa4680c9c9577449a..624d6436fff2db3173afdd6d26b2a835879bca86 100644 (file)
@@ -71,7 +71,7 @@ try
          //    cerr<<"error parsing packet: "<<mde.what()<<endl;
          continue;
        }
-       catch(exception& e) {
+       catch(std::exception& e) {
          cerr << e.what() << endl;
          continue;
        }
@@ -87,7 +87,7 @@ try
   */
 
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
index 75e3e53be001928a525605799d2fc09bf7f23ab4..aee72ad97a69d5d6a5e301b65e2f22b3a97425f5 100644 (file)
@@ -154,7 +154,7 @@ try
          parseErrors++;
          continue;
        }
-       catch(exception& e) {
+       catch(std::exception& e) {
          cerr << e.what() << endl;
          continue;
        }
@@ -187,7 +187,7 @@ try
     }
   }
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
index 1c97d2b7b9b259775aac16b60ae078063493a54e..ae62fe3b7617144b450e9d769b711b237f2c8bee 100644 (file)
@@ -89,7 +89,7 @@ try
   cerr<<"Out: "<<argv[1]<<" IN "<<argv[2]<<" "<<regen->getZoneRepresentation()<<endl;
 #endif
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<"\n";
 }
index d09f91c6fda2d958ec647e2b6a1f48060d57adc1..3a498ad60f0a63290af2185ab4248a380b64460b 100644 (file)
@@ -203,7 +203,7 @@ void DNSProxy::mainloop(void)
   catch(AhuException &ae) {
     L<<Logger::Error<<"Fatal error in DNS proxy: "<<ae.reason<<endl;
   }
-  catch(exception &e) {
+  catch(std::exception &e) {
     L<<Logger::Error<<"Communicator thread died because of STL error: "<<e.what()<<endl;
   }
   catch( ... )
index a28e368189f8bb40ee7d8fbe735caed4f464a595..42f51da398aef3ea06653b0768dd9e13f3ed853d 100644 (file)
@@ -379,7 +379,7 @@ try
   }
 
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Receiver thread died: "<<e.what()<<endl;
   exit(1);
@@ -664,7 +664,7 @@ try
   receiveFromReference();
   printStats();
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
index 09ad5aad98c07d4acf685ccbbd5f2b9cf8014617..4ed9f459b70b08ae50b6b012f4f8550f002f594e 100644 (file)
@@ -78,7 +78,7 @@ try
   }
 
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cout<<"Fatal: "<<e.what()<<endl;
 }
index a803af3830f10466c798a113d9fa42a05a767ac5..6203df824ef47ae2cc5cdaac7a1ca7f729a672f2 100644 (file)
@@ -74,7 +74,7 @@ try
   cerr<<"Saw "<<pr.d_correctpackets<<" correct packets, "<<pr.d_runts<<" runts, "<< pr.d_oversized<<" oversize, "<<
     pr.d_nonetheripudp<<" unknown encaps"<<endl;
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
index 1ed6c088b43dcda07e86d08e2b8bff16c184e406..9095f847186046050f78b251b87d438cd6699491 100644 (file)
@@ -52,7 +52,7 @@ try
   cerr<<"Received notification response with code: "<<mdp.d_header.rcode<<endl;
   cerr<<"For: '"<<mdp.d_qname<<"'"<<endl;
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
index e7b66cd8d36b62f1bdd2e41d9665fb1cb394306f..11d689e1b2b71ea758415194dfbbb26b17107b80 100644 (file)
@@ -110,7 +110,7 @@ try
   g_nifs[nif.resentID] = nif;
 
 }
-catch(exception &e)
+catch(std::exception &e)
 {
   syslogFmt(boost::format("Error parsing packet from external nameserver: %s") % e.what());
 }
@@ -159,7 +159,7 @@ try
   g_nifs.erase(mdp.d_header.id);
 
 }
-catch(exception &e)
+catch(std::exception &e)
 {
   syslogFmt(boost::format("Error parsing packet from internal nameserver: %s") % e.what());
 }
@@ -293,7 +293,7 @@ catch(boost::program_options::error& e)
 {
   syslogFmt(boost::format("Error parsing command line options: %s") % e.what());
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   syslogFmt(boost::format("Fatal: %s") % e.what());
 }
index 979f5d327c396dd2283fccd7e63f873494681469..b3ca28f3adabe14a6954bf3bee68b52b6e647bc1 100644 (file)
@@ -460,7 +460,7 @@ try
   cout<<"Regenerated: '"<<out<<"'\n";
   
 }
-catch(exception& e)
+catch(std::exception& e)
 {
   cerr<<"Fatal: "<<e.what()<<endl;
 }
index 0b775294338cd3120e7bbb1ea92ad21c574fee62..58b69c70108b7dccab777eb88bf38b033626c2fc 100644 (file)
@@ -579,7 +579,7 @@ int main(int argc, char **argv)
       cerr<<"Exiting because: "<<AE.reason<<endl;
     L<<Logger::Error<<"Exiting because: "<<AE.reason<<endl;
   }      
-  catch(exception &e) {
+  catch(std::exception &e) {
     if(!::arg().mustDo("daemon"))
       cerr<<"Exiting because of STL error: "<<e.what()<<endl;
     L<<Logger::Error<<"Exiting because of STL error: "<<e.what()<<endl;
index 8f240e8ef7a90eab19b8fbbc1d8ea940b2b32a83..8d82fa2139e6220c571854d7cfac7bc55652dc3a 100644 (file)
@@ -324,7 +324,7 @@ void *TCPNameserver::doConnection(void *data)
     s_P = 0; // on next call, backend will be recycled
     L<<Logger::Error<<"TCP nameserver had error, cycling backend: "<<ae.reason<<endl;
   }
-  catch(exception &e) {
+  catch(std::exception &e) {
     L<<Logger::Error<<"TCP Connection Thread died because of STL error: "<<e.what()<<endl;
   }
   catch( ... )
index 3e31e2a1ea85e645597ea01393adf6b732b2790b..a4077c32cbd97f20ffc5e2c9f1969ba71db4da75 100644 (file)
@@ -171,7 +171,7 @@ void *WebServer::serveConnection(void *p)
   catch(Exception &e) {
     L<<Logger::Error<<"Exception in webserver: "<<e.reason<<endl;
   }
-  catch(exception &e) {
+  catch(std::exception &e) {
     L<<Logger::Error<<"STL Exception in webserver: "<<e.what()<<endl;
   }
   catch(...) {
@@ -215,7 +215,7 @@ void WebServer::go()
   catch(Exception &e) {
     L<<Logger::Error<<"Fatal error in main webserver thread: "<<e.reason<<endl;
   }
-  catch(exception &e) {
+  catch(std::exception &e) {
     L<<Logger::Error<<"STL Exception in main webserver thread: "<<e.what()<<endl;
   }
   catch(...) {
index 82d079e78cdd9e7cc304a418efd5113819d2ed9e..6d8f7fca85aca0f470f1250f8a9415a51fdeab7f 100644 (file)
@@ -596,7 +596,7 @@ int serviceMain( int argc, char *argv[] )
   catch(AhuException &ae) {
     L<<Logger::Error<<"Exception: "<<ae.reason<<endl;
   }
-  catch(exception &e) {
+  catch(std::exception &e) {
     L<<Logger::Error<<"STL Exception: "<<e.what()<<endl;
   }
   catch(...) {
@@ -717,7 +717,7 @@ int main(int argc, char **argv)
   catch(AhuException &ae) {
     L<<Logger::Error<<"Exception: "<<ae.reason<<endl;
   }
-  catch(exception &e) {
+  catch(std::exception &e) {
     L<<Logger::Error<<"STL Exception: "<<e.what()<<endl;
   }
   catch(...) {