]> granicus.if.org Git - pdns/commitdiff
fix up std::exception for LDAP backend
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 7 Feb 2011 10:47:02 +0000 (10:47 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 7 Feb 2011 10:47:02 +0000 (10:47 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1991 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/ldapbackend/ldapbackend.cc

index ef4f6fdd5de76260e17c57f17e80c9d622818eb3..2a41f131851645bb9bd9a88a29dd7c766d0e96e2 100644 (file)
@@ -70,7 +70,7 @@ LdapBackend::LdapBackend( const string &suffix )
         {
                L << Logger::Error << m_myname << " Ldap connection to server failed: " << le.what() << endl;
         }
-        catch( exception &e )
+        catch( std::exception &e )
         {
                L << Logger::Error << m_myname << " Caught STL exception: " << e.what() << endl;
         }
@@ -109,7 +109,7 @@ bool LdapBackend::list( const string& target, int domain_id )
                L << Logger::Error << m_myname << " Unable to get zone " + target + " from LDAP directory: " << le.what() << endl;
                throw( AhuException( "LDAP server unreachable" ) );   // try to reconnect to another server
         }
-        catch( exception &e )
+        catch( std::exception &e )
         {
                L << Logger::Error << m_myname << " Caught STL exception for target " << target << ": " << e.what() << endl;
                throw( DBException( "STL exception" ) );
@@ -186,7 +186,7 @@ void LdapBackend::lookup( const QType &qtype, const string &qname, DNSPacket *dn
                L << Logger::Error << m_myname << " Unable to search LDAP directory: " << le.what() << endl;
                throw( AhuException( "LDAP server unreachable" ) );   // try to reconnect to another server
         }
-        catch( exception &e )
+        catch( std::exception &e )
         {
                L << Logger::Error << m_myname << " Caught STL exception for qname " << qname << ": " << e.what() << endl;
                throw( DBException( "STL exception" ) );
@@ -476,7 +476,7 @@ bool LdapBackend::get( DNSResourceRecord &rr )
                L << Logger::Error << m_myname << " Search failed: " << le.what() << endl;
                throw( AhuException( "LDAP server unreachable" ) );   // try to reconnect to another server
         }
-        catch( exception &e )
+        catch( std::exception &e )
         {
                L << Logger::Error << m_myname << " Caught STL exception for " << m_qname << ": " << e.what() << endl;
                throw( DBException( "STL exception" ) );