com.googlecode.objectify.NotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify;
/**
* Exception thrown from Objectify.get() when there is no entity with the
* specified key. This is exactly like the datastore EntityNotFoundException,
* however it is a RuntimeException and it contains the generic Key.
*/
public class NotFoundException extends RuntimeException
{
private static final long serialVersionUID = 1L;
private final Key key;
public NotFoundException(Key key)
{
super("No entity was found matching the key: " + key);
this.key = key;
}
public Key getKey()
{
return this.key;
}
}