}
if( m_pldap != NULL ) { delete( m_pldap ); }
- throw( PDNSException( "Unable to connect to ldap server" ) );
+ throw PDNSException( "Unable to connect to ldap server" );
}
catch( LDAPTimeout < )
{
g_log << Logger::Warning << m_myname << " Unable to get zone " << target << " from LDAP directory: " << lt.what() << endl;
- throw( DBException( "LDAP server timeout" ) );
+ throw DBException( "LDAP server timeout" );
}
catch( LDAPNoConnection &lnc )
{
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Unable to get zone " << target << " from LDAP directory: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
g_log << Logger::Error << m_myname << " Caught STL exception for target " << target << ": " << e.what() << endl;
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
return false;
catch( LDAPTimeout < )
{
g_log << Logger::Warning << m_myname << " Unable to search LDAP directory: " << lt.what() << endl;
- throw( DBException( "LDAP server timeout" ) );
+ throw DBException( "LDAP server timeout" );
}
catch( LDAPNoConnection &lnc )
{
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Unable to search LDAP directory: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
g_log << Logger::Error << m_myname << " Caught STL exception for qname " << qname << ": " << e.what() << endl;
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
}
catch( LDAPTimeout < )
{
g_log << Logger::Warning << m_myname << " Search failed: " << lt.what() << endl;
- throw( DBException( "LDAP server timeout" ) );
+ throw DBException( "LDAP server timeout" );
}
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Search failed: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
g_log << Logger::Error << m_myname << " Caught STL exception for " << m_qname << ": " << e.what() << endl;
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
return false;
catch( LDAPTimeout < )
{
g_log << Logger::Warning << m_myname << " Unable to search LDAP directory: " << lt.what() << endl;
- throw( DBException( "LDAP server timeout" ) );
+ throw DBException( "LDAP server timeout" );
}
catch( LDAPNoConnection &lnc )
{
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Unable to search LDAP directory: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
while( m_pldap->getSearchEntry( msgid, result ) ) {
catch( LDAPTimeout < )
{
g_log << Logger::Warning << m_myname << " Unable to search LDAP directory: " << lt.what() << endl;
- throw( DBException( "LDAP server timeout" ) );
+ throw DBException( "LDAP server timeout" );
}
catch( LDAPNoConnection &lnc )
{
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Unable to search LDAP directory: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
if ( results.empty() )
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Unable to search LDAP directory: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
}
catch( LDAPTimeout < )
{
g_log << Logger::Warning << m_myname << " Unable to search LDAP directory: " << lt.what() << endl;
- throw( DBException( "LDAP server timeout" ) );
+ throw DBException( "LDAP server timeout" );
}
catch( LDAPNoConnection &lnc )
{
catch( LDAPException &le )
{
g_log << Logger::Error << m_myname << " Unable to search LDAP directory: " << le.what() << endl;
- throw( PDNSException( "LDAP server unreachable" ) ); // try to reconnect to another server
+ throw PDNSException( "LDAP server unreachable" ); // try to reconnect to another server
}
catch( std::exception &e )
{
- throw( DBException( "STL exception" ) );
+ throw DBException( "STL exception" );
}
if( result.count( "sOARecord" ) && !result["sOARecord"].empty() )