Package net.sf.joafip.store.service

Examples of net.sf.joafip.store.service.StoreException


    localCheckLoaded();
    this.garbageCollectorState = garbageCollectorState.ordinal();
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here


    localCheckLoaded();
    this.garbageManagement = garbageManagement;
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

  private void localCheckLoaded() throws StoreException {
    try {
      checkLoaded();
    } catch (HeapRecordableException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

  @Override
  public void flush() throws StoreException {
    try {
      dataManager.flush();
    } catch (HeapException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

  @Override
  public boolean saveModification() throws StoreException {
    try {
      dataManager.flush();
    } catch (HeapException exception) {
      throw new StoreException(exception);
    }
    return true;
  }
View Full Code Here

    final ANotStorableClass notStorableClass = new ANotStorableClass();
    session.setObject("key", notStorableClass);
    try {
      session.close(EnumFilePersistenceCloseAction.SAVE);
    } catch (final FilePersistenceException exception) {
      final StoreException storeException = (StoreException) exception
          .getCause();
      final String message = storeException.getMessage();
      assertTrue("not the expected exception \"" + message + "\"",
          message.contains("not marked storable"));
    }
  }
View Full Code Here

    session.setObject("key", deprecatedInStoreClass);
    try {
      session.close(EnumFilePersistenceCloseAction.SAVE);
      fail("save must fail");
    } catch (final FilePersistenceException exception) {
      final StoreException storeException = (StoreException) exception
          .getCause();
      final String message = storeException.getMessage();
      assertTrue("not the expected excetion",
          message.contains("is deprecated in store"));
    }
  }
View Full Code Here

    exportFile = new File(directory, "export.xml");
    final OutputStream outputStream;
    try {
      outputStream = new FileOutputStreamNIO(exportFile);
    } catch (FileNotFoundException exception) {
      throw new StoreException(exception);
    }
    final BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(
        outputStream);
    try {
      xmlWriter = new XmlWriter(bufferedOutputStream);
    } catch (XmlWriterException exception) {
      try {
        outputStream.close();
      } catch (IOException exception2) {
        logger.error("closing after error", exception2);
      }
      throw new StoreException(exception);
    }
    indentation = 0;
  }
View Full Code Here

  @Override
  protected void close() throws StoreException {
    try {
      xmlWriter.close();
    } catch (XmlWriterException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

      xmlWriter.writeStartTag(indentation, objectsStartTag,
          false/* endTag */, true/* writeNewLine */);
    } catch (XmlWriterException exception) {
      closeWriterAfterError();
      throw new StoreException(exception);
    }
    indentation += 2;
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.StoreException

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.