Package org.openbel.framework.common

Examples of org.openbel.framework.common.DBConnectionFailure


                logger.error(
                        "Failed to re-establish a connection to {} after {} attempts",
                        url, REATTEMPTS);
                throw new SQLException(
                        "Unable to re-establish a valid connection",
                        new DBConnectionFailure(url,
                                "Unable to re-establish a valid connection"));
            }
            this.lastChecked = currentTimeMillis();
        }
        return connection;
View Full Code Here


            }
            c = getConnection(url, user, pass);
            return true;
        } catch (SQLException e) {
            Throwable originalSqlException = getFirstCause(e);
            throw new DBConnectionFailure(url,
                    originalSqlException.getMessage(),
                    originalSqlException);
        } finally {
            if (c != null) {
                try {
View Full Code Here

            String pass) throws DBConnectionFailure {
        try {
            return ds.dbConnection(jdbcUrl, user, pass);
        } catch (SQLException e) {
            // rethrow as fatal exception since we couldn't connect to KAMStore
            throw new DBConnectionFailure(jdbcUrl, e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.DBConnectionFailure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.