Package org.jresearch.gossip.exception

Examples of org.jresearch.gossip.exception.SystemException


            path = new File(Configurator.getInstance().get(
                    IConst.CONFIG.ATTACH_STORE_PATH));

            instance.setup(path, false);
        } catch (DatabaseException e) {
            throw new SystemException(e);
        }
    }
View Full Code Here


            try {
                // Finally, close the environment.
                env.close();
               
            } catch (DatabaseException dbe) {
                throw new SystemException("Error closing environment: ", dbe);
            }
        }
    }
View Full Code Here

     */
    public Database getFileDb(String dbname) throws SystemException {
      try {
        return env.openDatabase(null, dbname, dbConfig);
      } catch (DatabaseException dbe) {
            throw new SystemException("Error opening "+dbname+": ", dbe);
        }
    }
View Full Code Here

            db = getFileDB();
            DatabaseEntry theKey = new DatabaseEntry(key.getBytes("UTF-8"));
            DatabaseEntry theData = new DatabaseEntry(data);
            db.put(null, theKey, theData);
        } catch (UnsupportedEncodingException e) {
            throw new SystemException(e);
        } catch (DatabaseException e) {
            throw new SystemException(e);
        } finally {
            if (db != null) {
                try {
                    db.close();
                } catch (DatabaseException e) {
                    throw new SystemException(e);
                }
            }
        }
    }
View Full Code Here

            DatabaseEntry theData = new DatabaseEntry();
            if (db.get(null, theKey, theData, LockMode.DEFAULT) == OperationStatus.SUCCESS) { return theData
                    .getData(); }
            return null;
        } catch (UnsupportedEncodingException e) {
            throw new SystemException(e);
        } catch (DatabaseException e) {
            throw new SystemException(e);
        } finally {
            if (db != null) {
                try {
                    db.close();
                } catch (DatabaseException e) {
                    throw new SystemException(e);
                }
            }
        }
    }
View Full Code Here

        try {
            db = getFileDB();
            DatabaseEntry theKey = new DatabaseEntry(key.getBytes("UTF-8"));
            db.delete(null, theKey);
        } catch (UnsupportedEncodingException e) {
            throw new SystemException(e);
        } catch (DatabaseException e) {
            throw new SystemException(e);
        } finally {
            if (db != null) {
                try {
                    db.close();
                } catch (DatabaseException e) {
                    throw new SystemException(e);
                }
            }
        }

    }
View Full Code Here

                            .getClass()
                            .getClassLoader()
                            .getResourceAsStream(
                                    "org/jresearch/gossip/dao/file/filedb.properties"));
        } catch (IOException e) {
            throw new SystemException(e);
        }

    }
View Full Code Here

                    .newInstance();
            fp.setStoreName(storeName);
            registry.put(name, fp);

        } catch (InstantiationException e) {
            throw new SystemException(e);
        } catch (IllegalAccessException e) {
            throw new SystemException(e);
        } catch (ClassNotFoundException e) {
            throw new SystemException(e);
        }
    }
View Full Code Here

  public void load() throws SystemException {
    ForumDAO dao = ForumDAO.getInstance();
    try {
      ranks = (ArrayList) dao.getRankList();
    } catch (SQLException e) {
      throw new SystemException(e);
    }
  }
View Full Code Here

     
      dao.deleteGroup(pgForm.getGid());
      log(request, "logs.LOG13", pgForm.getGid());
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
    return (mapping.getInputForward());
  }
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.exception.SystemException

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.