Examples of DatabaseException


Examples of org.helidb.lang.DatabaseException

      {
        barr = md.digest(m_charset != null ? s.getBytes(m_charset.name()) : s.getBytes());
      }
      catch (UnsupportedEncodingException e)
      {
        throw new DatabaseException(e);
      }

      byte[] barrTruncated;
      if (barr.length < m_hashLength)
      {
View Full Code Here

Examples of org.helidb.lang.DatabaseException

    m_dbFile.seek(m_startPosOfDb);
    m_dbFile.setLength(m_startPosOfDb);
    long noCopied = StreamUtil.copyStreams(new RandomAccessToInputStreamAdapter(ra), new RandomAccessToOutputStreamAdapter(m_dbFile), m_bufferSize, dataSize);
    if (noCopied != dataSize)
    {
      throw new DatabaseException("Wanted to copy " + dataSize + " bytes. Got " + noCopied);
    }
    updateContentsVersion();
  }
View Full Code Here

Examples of org.molgenis.framework.db.DatabaseException

  }

  @Override
  public void setOrderByField(String orderByField) throws DatabaseException
  {
    if (orderByField == null || orderByField.equals("")) throw new DatabaseException("orderByField cannot be null");

    // pagingState = State.FIRST;
    this.orderByField = orderByField;
    logger.debug("set order by field to '" + orderByField + "'");
  }
View Full Code Here

Examples of org.owasp.dependencycheck.data.nvdcve.DatabaseException

        cpe = CpeMemoryIndex.getInstance();
        try {
            cpe.open(cve);
        } catch (IndexException ex) {
            LOGGER.log(Level.FINE, "IndexException", ex);
            throw new DatabaseException(ex);
        }
    }
View Full Code Here

Examples of org.webharvest.exception.DatabaseException

                dbPool.put(poolKey, conn);
            }
            return conn;
        }
        catch (Exception e) {
            throw new DatabaseException(e);
        }
    }
View Full Code Here

Examples of org.webharvest.exception.DatabaseException

            Connection conn = (Connection) iterator.next();
            if (conn != null) {
                try {
                    conn.close();
                } catch (SQLException e) {
                    throw new DatabaseException(e);
                }
            }
        }
    }
View Full Code Here

Examples of play.exceptions.DatabaseException

            } catch (Exception e) {
                DB.datasource = null;
                Logger.error(e, "Cannot connected to the database : %s", e.getMessage());
                if (e.getCause() instanceof InterruptedException) {
                    throw new DatabaseException("Cannot connected to the database. Check the configuration.", e);
                }
                throw new DatabaseException("Cannot connected to the database, " + e.getMessage(), e);
            }
        }
    }
View Full Code Here

Examples of railo.runtime.exp.DatabaseException

        this.type=type;
    }

    @Override
    public Object remove(int row) throws DatabaseException {
        throw new DatabaseException("can't remove "+columnName+" at row "+row+" value from Query",null,null,null);
    }
View Full Code Here

Examples of yalp.exceptions.DatabaseException

            } catch (Exception e) {
                DB.datasource = null;
                Logger.error(e, "Cannot connected to the database : %s", e.getMessage());
                if (e.getCause() instanceof InterruptedException) {
                    throw new DatabaseException("Cannot connected to the database. Check the configuration.", e);
                }
                throw new DatabaseException("Cannot connected to the database, " + e.getMessage(), e);
            }
        }
    }
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.