com.googlecode.objectify.LoadException 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
The simplest convenient interface to the Google App Engine datastore
package com.googlecode.objectify;
import com.google.appengine.api.datastore.Entity;
/**
* Thrown when something went wrong during the load translation process; for example, the data in the
* datastore might be in a format incompatible with the intended pojo field. Indicates what went
* wrong with which entity.
*/
public class LoadException extends TranslateException
{
private static final long serialVersionUID = 1L;
private final Entity entity;
/** Constructor to use when you're saving an entity with a known key */
public LoadException(Entity entity, String message, Throwable cause) {
super("Error loading " + entity.getKey() + ": " + message, cause);
this.entity = entity;
}
/** The complete version of what we couldn't translate */
public Entity getEntity() {
return this.entity;
}
}