private static void handleSQLException ( SQLException e , String poolName , String sql ) { YankSQLException yankSQLException = new YankSQLException ( e , poolName , sql ) ; if ( throwWrappedExceptions ) { throw yankSQLException ; } else { logger . error ( yankSQLException . getMessage ( ) , yankSQLException ) ; } }
Handles exceptions and logs them