コード例 #1
0
  private void restore() {
    try {
      importCookies(persister.restore());
    } catch (PersistenceException e) {

      if (logErrors) {
        e.printStackTrace();
      }

      exceptionHandler.onRestoreFailure(e);
    }
  }
コード例 #2
0
  private void persist() {
    try {
      persister.persist(exportCookies());
    } catch (PersistenceException e) {

      if (logErrors) {
        e.printStackTrace();
      }

      exceptionHandler.onPersistFailure(new PersistenceException(e));
    }
  }