Examples of KeyNotFoundException


Examples of org.helidb.lang.KeyNotFoundException

    }
    List<KeyAndValue<K, V>> records = nsr.m_node.getRecords();
    int pos = findRecord(key, records);
    if (pos < 0)
    {
      throw new KeyNotFoundException("The key " + key + " does not exist in the tree.");
    }

    replaceInternal(nsr, pos, key, newValue);
  }
View Full Code Here

Examples of org.helidb.lang.KeyNotFoundException

    assertNotReadOnly();

    Long pos = find(key);
    if (pos == null)
    {
      throw new KeyNotFoundException("The key " + key + " does not exist in the database");
    }
    return new Pair<Long>(pos, updateAt(pos, key, value));
  }
View Full Code Here

Examples of org.helidb.lang.KeyNotFoundException

  public Pair<K> update(K key, V value)
  {
    assertNotClosed();
    if (!m_map.containsKey(key))
    {
      throw new KeyNotFoundException("The key " + key + " does not exist in the database");
    }
    m_map.put(key, value);
    updateContentsVersion();
    return new Pair<K>(key, key);
  }
View Full Code Here

Examples of org.helidb.lang.KeyNotFoundException

    assertNotClosed();
    assertNotReadOnly();
    P pos = m_tree.find(m_keyHasher.hash(key));
    if (pos == null)
    {
      throw new KeyNotFoundException("The key " + key + " does not exist in the database");
    }
    // Our listener on m_backend takes care of updating the index tree.
    return new Pair<P>(pos, getProxied().updateAt(pos, key, value));
  }
View Full Code Here

Examples of org.jaudiotagger.tag.KeyNotFoundException

  }
 
  public static FieldKeyMeta getFieldKeyMeta(FieldKey key) {
    FieldKeyMeta keyMeta = meta.get(key);
    if (keyMeta == null) {
      throw new KeyNotFoundException();
    }
    return keyMeta;
  }
View Full Code Here

Examples of org.jclouds.blobstore.KeyNotFoundException

                  exception = new ContainerNotFoundException(matcher.group(1), message);
                  exception.initCause(oldException);
               } else {
                  matcher = CONTAINER_KEY_PATH.matcher(path);
                  if (matcher.find()) {
                     exception = new KeyNotFoundException(matcher.group(1), matcher.group(2), message);
                     exception.initCause(oldException);
                  }
               }
            }
            break;
View Full Code Here

Examples of org.jclouds.blobstore.KeyNotFoundException

      BlobStore blobStore = getBlobStore();

      for (String blobName : blobNames) {
         BlobMetadata blobMetadata = blobStore.blobMetadata(containerName, blobName);
         if (blobMetadata == null) {
            throw new KeyNotFoundException(containerName, blobName, "while getting metadata");
         }

         ContentMetadata contentMetdata = blobMetadata.getContentMetadata();
         System.out.println(blobName + ":");
View Full Code Here

Examples of org.jclouds.blobstore.KeyNotFoundException

   @Override
   protected Object doExecute() throws Exception {
      BlobStore blobStore = getBlobStore();

      if (!blobStore.blobExists(containerName, blobName)) {
          throw new KeyNotFoundException(containerName, blobName, "while checking existence");
      }
      return null;
   }
View Full Code Here

Examples of org.jclouds.blobstore.KeyNotFoundException

      Blob blob = blobStore.getBlob(containerName, blobName);
      if (blob == null) {
         if (!blobStore.containerExists(containerName)) {
            throw new ContainerNotFoundException(containerName, "while getting blob");
         }
         throw new KeyNotFoundException(containerName, blobName, "while getting blob");
      }
      return blob.getPayload().openStream();
   }
View Full Code Here

Examples of org.jclouds.blobstore.KeyNotFoundException

                  exception = new ContainerNotFoundException(matcher.group(1), message);
                  exception.initCause(oldException);
               } else {
                  matcher = CONTAINER_KEY_PATH.matcher(path);
                  if (matcher.find()) {
                     exception = new KeyNotFoundException(matcher.group(1), matcher.group(2), message);
                     exception.initCause(oldException);
                  }
               }
            }
            break;
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.