L<<Logger::Warning<<d_logprefix<<msg.str()<<endl;
rejected++;
}
- catch(exception &ae) {
+ catch(std::exception &ae) {
ostringstream msg;
msg<<" error at "+nowTime()+" parsing '"<<i->name<<"' from file '"<<i->filename<<"': "<<ae.what();
msg<<" error at "+nowTime()+" parsing '"<<bbd->d_name<<"' from file '"<<bbd->d_filename<<"': "<<ae.reason;
bbd->d_status=msg.str();
}
- catch(exception &ae) {
+ catch(std::exception &ae) {
ostringstream msg;
msg<<" error at "+nowTime()+" parsing '"<<bbd->d_name<<"' from file '"<<bbd->d_filename<<"': "<<ae.what();
bbd->d_status=msg.str();
callback(0, rr.qname, rr.qtype.getName(), rr.content, rr.ttl, rr.priority);
num_domainsdone++;
}
- catch(exception &ae) {
+ catch(std::exception &ae) {
if(!::arg().mustDo("on-error-resume-next"))
throw;
else
cerr<<"\nFatal error: "<<ae.reason<<endl;
return 0;
}
- catch(exception &e) {
+ catch(std::exception &e) {
cerr<<"died because of STL error: "<<e.what()<<endl;
exit(0);
}
pw.commit();
}
- catch(exception& e) {
+ catch(std::exception& e) {
L<<Logger::Error<<"Exception: "<<e.what()<<endl;
throw;
}
qclass=mdp.d_qclass;
return 0;
}
-catch(exception& e) {
+catch(std::exception& e) {
return -1;
}
dnserrors++;
continue;
}
- catch(exception& e) {
+ catch(std::exception& e) {
if(pw)
pw->write();
bogus++;
if(totpackets)
cerr<<"Average response time: "<<tottime/totpackets<<" usec"<<endl;
}
-catch(exception& e)
+catch(std::exception& e)
{
cerr<<"Fatal: "<<e.what()<<endl;
}
{
L<<Logger::Error<<"Fatal error 2 in control listener: "<<E<<endl;
}
- catch(exception& e)
+ catch(std::exception& e)
{
L<<Logger::Error<<"Fatal STL error: "<<e.what()<<endl;
}
S.inc("servfail-packets");
S.ringAccount("servfail-queries",p->qdomain);
}
- catch(exception &e) {
+ catch(std::exception &e) {
L<<Logger::Error<<"Exception building answer packet ("<<e.what()<<") sending out servfail"<<endl;
delete r;
r=p->replyPacket(); // generate an empty reply packet
try {
questionExpand(data, len, qname, sizeof(qname), type);
}
- catch(exception &e)
+ catch(std::exception &e)
{
throw MOADNSException(e.what());
}