com.coyotegulch.jisp
Class KeyNotFoundException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bycom.coyotegulch.jisp.DatabaseException
                  extended bycom.coyotegulch.jisp.KeyNotFoundException
All Implemented Interfaces:
java.io.Serializable

public class KeyNotFoundException
extends DatabaseException

An ObjectIndex throws KeyNotFoundException when a requested key is not found in the index. Each concrete index class * determines the circumstances under which this exception is thrown.

See Also:
ObjectIndex, Serialized Form

Constructor Summary
KeyNotFoundException()
          Constructs a new KeyNotFoundException with null as its error message string.
KeyNotFoundException(OrderedObject key)
          Constructs a new KeyNotFoundException with s as its error message string.
 
Method Summary
 OrderedObject getKey()
          Returns the key object that was not found.
 
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

KeyNotFoundException

public KeyNotFoundException()
Constructs a new KeyNotFoundException with null as its error message string.


KeyNotFoundException

public KeyNotFoundException(OrderedObject key)
Constructs a new KeyNotFoundException with s as its error message string.

Parameters:
key - Key object that was not found.
Method Detail

getKey

public OrderedObject getKey()
Returns the key object that was not found.

Returns:
the key that could not be found