Package org.waveprotocol.box.server.persistence

Examples of org.waveprotocol.box.server.persistence.FileNotFoundPersistenceException


  @Override
  public void delete(WaveletName waveletName) throws PersistenceException {
    Map<WaveletId, MemoryDeltaCollection> waveData = data.get(waveletName.waveId);
    if (waveData == null) {
      throw new FileNotFoundPersistenceException("WaveletData unknown");
    } else {
      if (waveData.remove(waveletName.waveletId) == null) {
        // Nothing was removed.
        throw new FileNotFoundPersistenceException("Nothing was removed");
      }
    }
  }
View Full Code Here


  @Override
  public void delete(WaveletName waveletName) throws PersistenceException {
    Map<WaveletId, MemoryDeltaCollection> waveData = data.get(waveletName.waveId);
    if (waveData == null) {
      throw new FileNotFoundPersistenceException("WaveletData unknown");
    } else {
      if (waveData.remove(waveletName.waveletId) == null) {
        // Nothing was removed.
        throw new FileNotFoundPersistenceException("Nothing was removed");
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.box.server.persistence.FileNotFoundPersistenceException

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.