d_db->doQuery(output.c_str());
}
catch(SSqlException &e) {
- throw AhuException("GSQLBackend listSubZone query: "+e.txtReason());
+ throw PDNSException("GSQLBackend listSubZone query: "+e.txtReason());
}
d_qname="";
d_count=0;
di.backend->abortTransaction();
return RCode::ServFail;
}
- catch (AhuException &e) {
- L<<Logger::Error<<msgPrefix<<"Caught AhuException: "<<e.reason<<"; Sending ServFail!"<<endl;
+ catch (PDNSException &e) {
+ L<<Logger::Error<<msgPrefix<<"Caught PDNSException: "<<e.reason<<"; Sending ServFail!"<<endl;
di.backend->abortTransaction();
return RCode::ServFail;
}
foundSOA=true;
}
if (!foundSOA) {
- throw AhuException("SOA-Serial update failed because there was no SOA. Wowie.");
+ throw PDNSException("SOA-Serial update failed because there was no SOA. Wowie.");
}
SOAData soa2Update;
fillSOAData(rec.content, soa2Update);