com.googlecode.objectify
Class NotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.googlecode.objectify.NotFoundException
All Implemented Interfaces:
java.io.Serializable

public class NotFoundException
extends java.lang.RuntimeException

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.

See Also:
Serialized Form

Constructor Summary
NotFoundException(Key<?> key)
           
 
Method Summary
 Key<?> getKey()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotFoundException

public NotFoundException(Key<?> key)
Method Detail

getKey

public Key<?> getKey()


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1