From 15dc3cf679ca8b6081294a23c3ace7f8191640ea Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Mon, 7 Feb 2011 10:47:02 +0000 Subject: [PATCH] fix up std::exception for LDAP backend git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1991 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- modules/ldapbackend/ldapbackend.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ldapbackend/ldapbackend.cc b/modules/ldapbackend/ldapbackend.cc index ef4f6fdd5d..2a41f13185 100644 --- a/modules/ldapbackend/ldapbackend.cc +++ b/modules/ldapbackend/ldapbackend.cc @@ -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" ) ); -- 2.47.3