/** * <p> * Gets the default Connection Pool. This method overrides <code> * getPool(String poolName)</code> * . * </p> * * @return The default connection pool. * @throws ConnectionPoolNotFoundException * If the default connection pool cannot be found. */ public ConnectionPool getPool() throws ConnectionPoolNotFoundException { ConnectionPool connectionPool = null; try { if (h_ConnectionPools.containsKey(defaultPoolName)) { connectionPool = h_ConnectionPools.get(defaultPoolName); } else { // Error: default pool was never initialized or could not be found throw new ConnectionPoolNotFoundException("Default connection pool " + "not found: " + defaultPoolName); } } catch (Throwable th) { throw new ConnectionPoolNotFoundException("The default connection " + "pool \"" + defaultPoolName + "\" could not be found. The " + "underlying error was a " + th.getClass().getName() + "The message was \"" + th.getMessage() + "\"."); } return connectionPool; }
} else { throw new ConnectionPoolNotFoundException("Connection pool " + "not found: " + poolName); throw new ConnectionPoolNotFoundException("The specified connection " + "pool \"" + poolName
} else { throw new ConnectionPoolNotFoundException("Connection pool " + "not found: " + poolName); throw new ConnectionPoolNotFoundException("The specified connection " + "pool \"" + poolName
/** * <p> * Gets the default Connection Pool. This method overrides <code> * getPool(String poolName)</code> * . * </p> * * @return The default connection pool. * @throws ConnectionPoolNotFoundException * If the default connection pool cannot be found. */ public ConnectionPool getPool() throws ConnectionPoolNotFoundException { ConnectionPool connectionPool = null; try { if (h_ConnectionPools.containsKey(defaultPoolName)) { connectionPool = h_ConnectionPools.get(defaultPoolName); } else { // Error: default pool was never initialized or could not be found throw new ConnectionPoolNotFoundException("Default connection pool " + "not found: " + defaultPoolName); } } catch (Throwable th) { throw new ConnectionPoolNotFoundException("The default connection " + "pool \"" + defaultPoolName + "\" could not be found. The " + "underlying error was a " + th.getClass().getName() + "The message was \"" + th.getMessage() + "\"."); } return connectionPool; }