Changeset 1275

Show
Ignore:
Timestamp:
11/15/08 21:38:58 (16 months ago)
Author:
ahu
Message:

second batch of std::exception updates for new boost

Location:
trunk/pdns/pdns
Files:
14 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnsdemog.cc

    r960 r1275  
    7272          continue; 
    7373        } 
    74         catch(exception& e) { 
     74        catch(std::exception& e) { 
    7575          cerr << e.what() << endl; 
    7676          continue; 
     
    8888 
    8989} 
    90 catch(exception& e) 
     90catch(std::exception& e) 
    9191{ 
    9292  cerr<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/dnsgram.cc

    r1125 r1275  
    155155          continue; 
    156156        } 
    157         catch(exception& e) { 
     157        catch(std::exception& e) { 
    158158          cerr << e.what() << endl; 
    159159          continue; 
     
    188188  } 
    189189} 
    190 catch(exception& e) 
     190catch(std::exception& e) 
    191191{ 
    192192  cerr<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/dnspbench.cc

    r832 r1275  
    9090#endif 
    9191} 
    92 catch(exception& e) 
     92catch(std::exception& e) 
    9393{ 
    9494  cerr<<"Fatal: "<<e.what()<<"\n"; 
  • trunk/pdns/pdns/dnsproxy.cc

    r1215 r1275  
    204204    L<<Logger::Error<<"Fatal error in DNS proxy: "<<ae.reason<<endl; 
    205205  } 
    206   catch(exception &e) { 
     206  catch(std::exception &e) { 
    207207    L<<Logger::Error<<"Communicator thread died because of STL error: "<<e.what()<<endl; 
    208208  } 
  • trunk/pdns/pdns/dnsreplay.cc

    r1268 r1275  
    380380 
    381381} 
    382 catch(exception& e) 
     382catch(std::exception& e) 
    383383{ 
    384384  cerr<<"Receiver thread died: "<<e.what()<<endl; 
     
    665665  printStats(); 
    666666} 
    667 catch(exception& e) 
     667catch(std::exception& e) 
    668668{ 
    669669  cerr<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/dnsscan.cc

    r857 r1275  
    7979 
    8080} 
    81 catch(exception& e) 
     81catch(std::exception& e) 
    8282{ 
    8383  cout<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/dnswasher.cc

    r1037 r1275  
    7575    pr.d_nonetheripudp<<" unknown encaps"<<endl; 
    7676} 
    77 catch(exception& e) 
     77catch(std::exception& e) 
    7878{ 
    7979  cerr<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/notify.cc

    r1087 r1275  
    5353  cerr<<"For: '"<<mdp.d_qname<<"'"<<endl; 
    5454} 
    55 catch(exception& e) 
     55catch(std::exception& e) 
    5656{ 
    5757  cerr<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/nproxy.cc

    r1112 r1275  
    111111 
    112112} 
    113 catch(exception &e) 
     113catch(std::exception &e) 
    114114{ 
    115115  syslogFmt(boost::format("Error parsing packet from external nameserver: %s") % e.what()); 
     
    160160 
    161161} 
    162 catch(exception &e) 
     162catch(std::exception &e) 
    163163{ 
    164164  syslogFmt(boost::format("Error parsing packet from internal nameserver: %s") % e.what()); 
     
    294294  syslogFmt(boost::format("Error parsing command line options: %s") % e.what()); 
    295295} 
    296 catch(exception& e) 
     296catch(std::exception& e) 
    297297{ 
    298298  syslogFmt(boost::format("Fatal: %s") % e.what()); 
  • trunk/pdns/pdns/rcpgenerator.cc

    r1167 r1275  
    461461   
    462462} 
    463 catch(exception& e) 
     463catch(std::exception& e) 
    464464{ 
    465465  cerr<<"Fatal: "<<e.what()<<endl; 
  • trunk/pdns/pdns/receiver.cc

    r1256 r1275  
    580580    L<<Logger::Error<<"Exiting because: "<<AE.reason<<endl; 
    581581  }       
    582   catch(exception &e) { 
     582  catch(std::exception &e) { 
    583583    if(!::arg().mustDo("daemon")) 
    584584      cerr<<"Exiting because of STL error: "<<e.what()<<endl; 
  • trunk/pdns/pdns/tcpreceiver.cc

    r1241 r1275  
    325325    L<<Logger::Error<<"TCP nameserver had error, cycling backend: "<<ae.reason<<endl; 
    326326  } 
    327   catch(exception &e) { 
     327  catch(std::exception &e) { 
    328328    L<<Logger::Error<<"TCP Connection Thread died because of STL error: "<<e.what()<<endl; 
    329329  } 
  • trunk/pdns/pdns/webserver.cc

    r1092 r1275  
    172172    L<<Logger::Error<<"Exception in webserver: "<<e.reason<<endl; 
    173173  } 
    174   catch(exception &e) { 
     174  catch(std::exception &e) { 
    175175    L<<Logger::Error<<"STL Exception in webserver: "<<e.what()<<endl; 
    176176  } 
     
    216216    L<<Logger::Error<<"Fatal error in main webserver thread: "<<e.reason<<endl; 
    217217  } 
    218   catch(exception &e) { 
     218  catch(std::exception &e) { 
    219219    L<<Logger::Error<<"STL Exception in main webserver thread: "<<e.what()<<endl; 
    220220  } 
  • trunk/pdns/pdns/win32_pdns_recursor.cc

    r681 r1275  
    597597    L<<Logger::Error<<"Exception: "<<ae.reason<<endl; 
    598598  } 
    599   catch(exception &e) { 
     599  catch(std::exception &e) { 
    600600    L<<Logger::Error<<"STL Exception: "<<e.what()<<endl; 
    601601  } 
     
    718718    L<<Logger::Error<<"Exception: "<<ae.reason<<endl; 
    719719  } 
    720   catch(exception &e) { 
     720  catch(std::exception &e) { 
    721721    L<<Logger::Error<<"STL Exception: "<<e.what()<<endl; 
    722722  }