]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/slavecommunicator.cc
Merge branch 'rfc2136' of https://github.com/mind04/pdns into rfc2136
[thirdparty/pdns.git] / pdns / slavecommunicator.cc
index 6cd1236a1ab62a59df652ac774931505857438ba..65d6fa1ffaf562e253fa55b285d158d0847a9a83 100644 (file)
@@ -370,8 +370,8 @@ void CommunicatorClass::suck(const string &domain,const string &remote)
       di.backend->abortTransaction();
     }
   }
-  catch(AhuException &ae) {
-    L<<Logger::Error<<"Unable to AXFR zone '"+domain+"' from remote '"<<remote<<"' (AhuException): "<<ae.reason<<endl;
+  catch(PDNSException &ae) {
+    L<<Logger::Error<<"Unable to AXFR zone '"+domain+"' from remote '"<<remote<<"' (PDNSException): "<<ae.reason<<endl;
     if(di.backend && !first) {
       L<<Logger::Error<<"Aborting possible open transaction for domain '"<<domain<<"' AXFR"<<endl;
       di.backend->abortTransaction();
@@ -426,7 +426,7 @@ struct SlaveSenderReceiver
           dni.dnssecOk, dni.tsigkeyname, dni.tsigalgname, dni.tsigsecret)
       );
     }
-    catch(AhuException& e) {
+    catch(PDNSException& e) {
       throw runtime_error("While attempting to query freshness of '"+dni.di.zone+"': "+e.reason);
     }
   }
@@ -552,7 +552,7 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P)
     catch(std::exception& e) {
       L<<Logger::Error<<"While checking domain freshness: " << e.what()<<endl;
     }
-    catch(AhuException &re) {  
+    catch(PDNSException &re) {  
       L<<Logger::Error<<"While checking domain freshness: " << re.reason<<endl;
     }
   }