1.9.30 sync.
[gae.git] / java / src / main / com / google / appengine / api / datastore / EntityNotFoundException.java
blob371c4861d45f9c1265f06faff2b670641d3a496e
1 // Copyright 2007 Google Inc. All rights reserved.
3 package com.google.appengine.api.datastore;
5 /**
6 * {@code EntityNotFoundException} is thrown when no {@code Entity}
7 * with the specified {@code Key} could be found.
9 */
10 public class EntityNotFoundException extends Exception {
11 private final Key key;
13 public EntityNotFoundException(Key key) {
14 super("No entity was found matching the key: " + key);
15 this.key = key;
18 public Key getKey() {
19 return key;