if( !connectTo( m_hosts[READ], READ ) ) { throw( AhuException( "Fatal: Connecting to server for reading failed" ) ); }
if( !connectTo( m_hosts[WRITE], WRITE ) ) { throw( AhuException( "Fatal: Connecting to server for writing failed" ) ); }
}
- catch( exception& e )
+ catch( std::exception& e )
{
L.log( m_myname + " OdbxBackend(): Caught STL exception - " + e.what(), Logger::Error );
throw( AhuException( "Fatal: STL exception" ) );
}
while( getRecord( READ ) );
}
- catch( exception& e )
+ catch( std::exception& e )
{
- L.log( m_myname + " getDomainInfo: Caught STL exception - " + e.what(), Logger::Error );
+ L.log( m_myname + " getDomainInfo: Caught STL std::exception - " + e.what(), Logger::Error );
return false;
}
}
while( getRecord( READ ) );
}
- catch( exception& e )
+ catch( std::exception& e )
{
L.log( m_myname + " getSOA: Caught STL exception - " + e.what(), Logger::Error );
return false;
if( !execStmt( stmtref.c_str(), stmtref.size(), READ ) ) { return false; }
}
- catch( exception& e )
+ catch( std::exception& e )
{
L.log( m_myname + " list: Caught STL exception - " + e.what(), Logger::Error );
return false;
throw( DBException( "Error: DB statement failed" ) );
}
}
- catch( exception& e )
+ catch( std::exception& e )
{
L.log( m_myname + " lookup: Caught STL exception - " + e.what(), Logger::Error );
throw( DBException( "Error: STL exception" ) );
return true;
}
}
- catch( exception& e )
+ catch( std::exception& e )
{
L.log( m_myname + " get: Caught STL exception - " + e.what(), Logger::Error );
return false;
throw( DBException( "Error: DB statement failed" ) );
}
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " setFresh: Caught STL exception - " + e.what(), Logger::Error );
throw( DBException( "Error: STL exception" ) );
throw( DBException( "Error: DB statement failed" ) );
}
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " setNotified: Caught STL exception - " + e.what(), Logger::Error );
throw( DBException( "Error: STL exception" ) );
}
while( getRecord( READ ) );
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " isMaster: Caught STL exception - " + e.what(), Logger::Error );
return false;
getDomainList( getArg( "sql-infoslaves" ), unfresh, &checkSlave );
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " getUnfreshSlaveInfo: Caught STL exception - " + e.what(), Logger::Error );
}
getDomainList( getArg( "sql-infomasters" ), updated, &checkMaster );
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " getUpdatedMasters: Caught STL exception - " + e.what(), Logger::Error );
}
}
}
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " superMasterBackend: Caught STL exception - " + e.what(), Logger::Error );
return false;
if( !execStmt( m_buffer, len, WRITE ) ) { return false; }
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " createSlaveDomain: Caught STL exception - " + e.what(), Logger::Error );
return false;
if( !execStmt( m_buffer, len, WRITE ) ) { return false; }
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " feedRecord: Caught STL exception - " + e.what(), Logger::Error );
return false;
if( !execStmt( stmtref.c_str(), stmtref.size(), WRITE ) ) { return false; }
}
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " startTransaction: Caught STL exception - " + e.what(), Logger::Error );
return false;
const string& stmt = getArg( "sql-transactend" );
if( !execStmt( stmt.c_str(), stmt.size(), WRITE ) ) { return false; }
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " commitTransaction: Caught STL exception - " + e.what(), Logger::Error );
return false;
const string& stmt = getArg( "sql-transactabort" );
if( !execStmt( stmt.c_str(), stmt.size(), WRITE ) ) { return false; }
}
- catch ( exception& e )
+ catch ( std::exception& e )
{
L.log( m_myname + " abortTransaction: Caught STL exception - " + e.what(), Logger::Error );
return false;