Changeset 1381

Show
Ignore:
Timestamp:
07/30/09 22:00:16 (8 months ago)
Author:
ahu
Message:

the big std::exception cleanup for newer boost for 3.1.7.1, 1274, 1275, 1276

Location:
tags/pdns-3.1.7.1/pdns
Files:
20 modified

Legend:

Unmodified
Added
Removed
  • tags/pdns-3.1.7.1/pdns/dnsdemog.cc

    r960 r1381  
    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; 
  • tags/pdns-3.1.7.1/pdns/dnsgram.cc

    r1125 r1381  
    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; 
  • tags/pdns-3.1.7.1/pdns/dnspacket.cc

    r1138 r1381  
    323323      pw.commit(); 
    324324    } 
    325     catch(exception& e) { 
     325    catch(std::exception& e) { 
    326326      L<<Logger::Error<<"Exception: "<<e.what()<<endl; 
    327327      throw; 
     
    434434  return 0; 
    435435} 
    436 catch(exception& e) { 
     436catch(std::exception& e) { 
    437437  return -1; 
    438438} 
  • tags/pdns-3.1.7.1/pdns/dnspbench.cc

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

    r1215 r1381  
    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  } 
  • tags/pdns-3.1.7.1/pdns/dnsreplay.cc

    r1175 r1381  
    381381 
    382382} 
    383 catch(exception& e) 
     383catch(std::exception& e) 
    384384{ 
    385385  cerr<<"Receiver thread died: "<<e.what()<<endl; 
     
    655655 out:; 
    656656} 
    657 catch(exception& e) 
     657catch(std::exception& e) 
    658658{ 
    659659  cerr<<"Fatal: "<<e.what()<<endl; 
  • tags/pdns-3.1.7.1/pdns/dnsscan.cc

    r857 r1381  
    7979 
    8080} 
    81 catch(exception& e) 
     81catch(std::exception& e) 
    8282{ 
    8383  cout<<"Fatal: "<<e.what()<<endl; 
  • tags/pdns-3.1.7.1/pdns/dnsscope.cc

    r1102 r1381  
    115115        continue; 
    116116      } 
    117       catch(exception& e) { 
     117      catch(std::exception& e) { 
    118118        if(pw) 
    119119          pw->write(); 
     
    212212    cerr<<"Average response time: "<<tottime/totpackets<<" usec"<<endl; 
    213213} 
    214 catch(exception& e) 
     214catch(std::exception& e) 
    215215{ 
    216216  cerr<<"Fatal: "<<e.what()<<endl; 
  • tags/pdns-3.1.7.1/pdns/dnswasher.cc

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

    r910 r1381  
    236236      L<<Logger::Error<<"Fatal error 2 in control listener: "<<E<<endl; 
    237237    } 
    238   catch(exception& e) 
     238  catch(std::exception& e) 
    239239    { 
    240240      L<<Logger::Error<<"Fatal STL error: "<<e.what()<<endl; 
  • tags/pdns-3.1.7.1/pdns/lwres.cc

    r1190 r1381  
    182182    return 1; 
    183183  } 
    184   catch(exception &mde) { 
     184  catch(std::exception &mde) { 
    185185    if(::arg().mustDo("log-common-errors")) 
    186186      L<<Logger::Notice<<"Unable to parse packet from remote server "<<ip.toString()<<": "<<mde.what()<<endl; 
  • tags/pdns-3.1.7.1/pdns/notify.cc

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

    r1112 r1381  
    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()); 
  • tags/pdns-3.1.7.1/pdns/packethandler.cc

    r1216 r1381  
    934934    S.ringAccount("servfail-queries",p->qdomain); 
    935935  } 
    936   catch(exception &e) { 
     936  catch(std::exception &e) { 
    937937    L<<Logger::Error<<"Exception building answer packet ("<<e.what()<<") sending out servfail"<<endl; 
    938938    delete r; 
  • tags/pdns-3.1.7.1/pdns/pdns_recursor.cc

    r1200 r1381  
    569569      if(ret.size()) { 
    570570        shuffle(ret); 
    571  
     571         
    572572        for(vector<DNSResourceRecord>::const_iterator i=ret.begin(); i!=ret.end(); ++i) { 
    573573          pw.startRecord(i->qname, i->qtype.getCode(), i->ttl, i->qclass, (DNSPacketWriter::Place)i->d_place);  
     
    667667    L<<Logger::Error<<"DNS parser error: "<<dc->d_mdp.d_qname<<", "<<e.what()<<endl; 
    668668  } 
    669   catch(exception& e) { 
     669  catch(std::exception& e) { 
    670670    L<<Logger::Error<<"STL error: "<<e.what()<<endl; 
    671671  } 
     
    881881           questionExpand(data, len, qname, sizeof(qname), type);   
    882882        } 
    883         catch(exception &e) 
     883        catch(std::exception &e) 
    884884        { 
    885885           throw MOADNSException(e.what()); 
     
    11841184    command(); 
    11851185  } 
    1186   catch(exception& e) { 
     1186  catch(std::exception& e) { 
    11871187    L<<Logger::Error<<"Error dealing with control socket request: "<<e.what()<<endl; 
    11881188  } 
     
    14871487    return "ok\n"; 
    14881488  } 
    1489   catch(exception& e) { 
     1489  catch(std::exception& e) { 
    14901490    L<<Logger::Error<<"Had error reloading zones, keeping original data: "<<e.what()<<endl; 
    14911491  } 
     
    15261526            rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl); 
    15271527          } 
    1528           catch(exception &e) { 
     1528          catch(std::exception &e) { 
    15291529            throw AhuException("Error parsing record '"+rr.qname+"' of type "+rr.qtype.getName()+" in zone '"+headers.first+"' from file '"+headers.second+"': "+e.what()); 
    15301530          } 
     
    16481648    } 
    16491649  } 
    1650   catch(exception& e) { 
     1650  catch(std::exception& e) { 
    16511651    L<<Logger::Error<<"Retaining current script, error from '"<<fname<<"': "<< e.what() <<endl; 
    16521652    return string("Retaining current script, error from '"+fname+"': "+string(e.what())+"\n"); 
     
    17721772     
    17731773  } 
    1774   catch(exception &e) { 
     1774  catch(std::exception &e) { 
    17751775    L<<Logger::Error<<"Failed to load 'lua' script from '"<<::arg()["lua-dns-script"]<<"': "<<e.what()<<endl; 
    17761776    exit(99); 
     
    19871987#endif 
    19881988    ::arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR; 
     1989#ifndef WIN32 
     1990    ::arg().set("socket-owner","Owner of socket")=""; 
     1991    ::arg().set("socket-group","Group of socket")=""; 
     1992    ::arg().set("socket-mode", "Permissions for socket")=""; 
     1993#endif 
     1994     
    19891995    ::arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; 
    19901996    ::arg().set("delegation-only","Which domains we only accept delegations from")=""; 
     
    20612067    ret=EXIT_FAILURE; 
    20622068  } 
    2063   catch(exception &e) { 
     2069  catch(std::exception &e) { 
    20642070    L<<Logger::Error<<"STL Exception: "<<e.what()<<endl; 
    20652071    ret=EXIT_FAILURE; 
  • tags/pdns-3.1.7.1/pdns/rcpgenerator.cc

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

    r1216 r1381  
    568568    L<<Logger::Error<<"Exiting because: "<<AE.reason<<endl; 
    569569  }       
    570   catch(exception &e) { 
     570  catch(std::exception &e) { 
    571571    if(!::arg().mustDo("daemon")) 
    572572      cerr<<"Exiting because of STL error: "<<e.what()<<endl; 
  • tags/pdns-3.1.7.1/pdns/tcpreceiver.cc

    r1215 r1381  
    324324    L<<Logger::Error<<"TCP nameserver had error, cycling backend: "<<ae.reason<<endl; 
    325325  } 
    326   catch(exception &e) { 
     326  catch(std::exception &e) { 
    327327    L<<Logger::Error<<"TCP Connection Thread died because of STL error: "<<e.what()<<endl; 
    328328  } 
  • tags/pdns-3.1.7.1/pdns/webserver.cc

    r1092 r1381  
    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  } 
  • tags/pdns-3.1.7.1/pdns/win32_pdns_recursor.cc

    r681 r1381  
    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  }