Changeset 1276

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

third batch of std::exception

Location:
trunk/pdns/pdns
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/backends/bind/bindbackend2.cc

    r1266 r1276  
    604604            rejected++; 
    605605          } 
    606           catch(exception &ae) { 
     606          catch(std::exception &ae) { 
    607607            ostringstream msg; 
    608608            msg<<" error at "+nowTime()+" parsing '"<<i->name<<"' from file '"<<i->filename<<"': "<<ae.what(); 
     
    719719    bbd->d_status=msg.str(); 
    720720  } 
    721   catch(exception &ae) { 
     721  catch(std::exception &ae) { 
    722722    ostringstream msg; 
    723723    msg<<" error at "+nowTime()+" parsing '"<<bbd->d_name<<"' from file '"<<bbd->d_filename<<"': "<<ae.what(); 
  • trunk/pdns/pdns/backends/bind/zone2sql.cc

    r1266 r1276  
    288288            num_domainsdone++; 
    289289          } 
    290           catch(exception &ae) { 
     290          catch(std::exception &ae) { 
    291291            if(!::arg().mustDo("on-error-resume-next")) 
    292292              throw; 
     
    323323    return 0; 
    324324  } 
    325   catch(exception &e) { 
     325  catch(std::exception &e) { 
    326326    cerr<<"died because of STL error: "<<e.what()<<endl; 
    327327    exit(0); 
  • trunk/pdns/pdns/dnspacket.cc

    r1270 r1276  
    344344      pw.commit(); 
    345345    } 
    346     catch(exception& e) { 
     346    catch(std::exception& e) { 
    347347      L<<Logger::Error<<"Exception: "<<e.what()<<endl; 
    348348      throw; 
     
    478478  return 0; 
    479479} 
    480 catch(exception& e) { 
     480catch(std::exception& e) { 
    481481  return -1; 
    482482} 
  • trunk/pdns/pdns/dnsscope.cc

    r1102 r1276  
    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; 
  • trunk/pdns/pdns/dynlistener.cc

    r1255 r1276  
    312312      L<<Logger::Error<<"Fatal error 2 in control listener: "<<E<<endl; 
    313313    } 
    314   catch(exception& e) 
     314  catch(std::exception& e) 
    315315    { 
    316316      L<<Logger::Error<<"Fatal STL error: "<<e.what()<<endl; 
  • trunk/pdns/pdns/packethandler.cc

    r1272 r1276  
    940940    S.ringAccount("servfail-queries",p->qdomain); 
    941941  } 
    942   catch(exception &e) { 
     942  catch(std::exception &e) { 
    943943    L<<Logger::Error<<"Exception building answer packet ("<<e.what()<<") sending out servfail"<<endl; 
    944944    delete r; 
  • trunk/pdns/pdns/pdns_recursor.cc

    r1274 r1276  
    881881           questionExpand(data, len, qname, sizeof(qname), type);   
    882882        } 
    883         catch(exception &e) 
     883        catch(std::exception &e) 
    884884        { 
    885885           throw MOADNSException(e.what());