Package nz.co.abrahams.asithappens.core

Examples of nz.co.abrahams.asithappens.core.DBException


            results.close();
            statement.close();
            return oidID;           
        } catch (SQLException e) {
            logger.error("Problem adding values for OID " + oid.label + " (" + oid.oid + ")");
            throw new DBException("Problem adding values for OID " + oid.label + " (" + oid.oid + ")", e);
        }
       
    }
View Full Code Here


            results.close();
            statement.close();
            return customOID;
        } catch (SQLException e) {
            logger.error("Problem retrieving CustomOID from database");
            throw new DBException("Problem retrieving CustomOID in database", e);
        }
    }
View Full Code Here

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for CustomOID DAO");
            throw new DBException("Error closing database connection for CustomOID DAO", e);
        }
    }
View Full Code Here

                statement.close();
            }
           
        } catch (SQLException e) {
            logger.error("Problem creating CustomOIDCollector in database for session " + sessionID);
            throw new DBException("Problem creating CustomOIDCollector in database for session " + sessionID, e);
        }
    }
View Full Code Here

                customOIDs.add(customOIDDAO.retrieve(oidIDs.elementAt(i).intValue()));
            }
            return new CustomOIDCollector(snmp, pollInterval, valueUnits, customOIDs);
        } catch (SQLException e) {
            logger.error("Problem retrieving custom OIDs for session " + sessionID);
            throw new DBException("Problem retrieving custom OIDs for session " + sessionID, e);
        }       
    }
View Full Code Here

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for CustomOIDCollector DAO");
            throw new DBException("Error closing database connection for CustomOIDCollector DAO", e);
        }
    }
View Full Code Here

TOP

Related Classes of nz.co.abrahams.asithappens.core.DBException

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.