Examples of DBException


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

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

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

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

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

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

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

            results.close();
            statement.close();
            return setDisplayID;
        } catch (SQLException e) {
            logger.error("Problem creating SetDisplay in database");
            throw new DBException("Problem creating SetDisplay in database", e);
        }
    }
View Full Code Here

Examples of org.adbcj.DbException

   * @throws Exception
   */
  public Throwable handleException(AbstractMySqlConnection connection, Throwable cause) throws Exception {
    logger.debug("Caught exception: ", cause);

    DbException dbException = DbException.wrap(connection, cause);
    if (connection != null) {
      DefaultDbFuture<Connection> connectFuture = connection.getConnectFuture();
      if (!connectFuture.isDone()) {
        connectFuture.setException(dbException);
        return null;
View Full Code Here

Examples of org.adempiere.exceptions.DBException

      pstmt.close();
      pstmt = null;
    }
    catch (SQLException e)
    {
      throw new DBException(e, sql);
    }
    finally
    {
      DB.close(rs, pstmt);
      rs = null; pstmt = null;
View Full Code Here

Examples of org.apache.xindice.core.DBException

      buf = uri.getBytes();
      pos = 0;
      String tmp;

      if ( buf.length == 0 ) {
         throw new DBException(FaultCodes.URI_EMPTY);
      }

      // TODO: Be Able To Handle Remote URIs
      if ( (char)buf[0] != '/' ) {
         parseName(":"); // Ignore Protocol
View Full Code Here

Examples of org.exist.storage.btree.DBException

                conn.close();
                if (LOG.isDebugEnabled())
                    LOG.debug("GML index: " + getDataDir() + "/" + db_file_name_prefix + " closed");
            }
        } catch (SQLException e) {
            throw new DBException(e.getMessage());
        } finally {
            conn = null;
        }
    }
View Full Code Here

Examples of org.h2.message.DbException

            if (sessionFactory == null) {
                sessionFactory = (SessionFactory) Class.forName("org.h2.engine.Engine").newInstance();
            }
            return sessionFactory.createSession(ci);
        } catch (Exception re) {
            DbException e = DbException.convert(re);
            if (e.getErrorCode() == ErrorCode.DATABASE_ALREADY_OPEN_1) {
                if (autoServerMode) {
                    String serverKey = ((JdbcSQLException) e.getSQLException()).getSQL();
                    if (serverKey != null) {
                        backup.setServerKey(serverKey);
                        // OPEN_NEW must be removed now, otherwise
                        // opening a session with AUTO_SERVER fails
                        // if another connection is already open
View Full Code Here

Examples of org.h2.message.DbException

            socket.close();
        } catch (IOException e) {
            return;
        }
        if (running) {
            DbException e = DbException.get(ErrorCode.DATABASE_ALREADY_OPEN_1, "Server is running");
            throw e.addSQL(server + "/" + id);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.