com.basho.riak.client.convert
Class NoKeySpecifedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.basho.riak.client.convert.NoKeySpecifedException
All Implemented Interfaces:
Serializable

public class NoKeySpecifedException
extends RuntimeException

Thrown by an operation that requires a key but doesn't have one.

Author:
russell
See Also:
JSONConverter, DefaultBucket, Serialized Form

Constructor Summary
NoKeySpecifedException(Object domainObject)
          Construct an exception, pass the domainObject for which the key cannot be found.
 
Method Summary
 Object getDomainObject()
          Get the object that triggered the exception
 
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

NoKeySpecifedException

public NoKeySpecifedException(Object domainObject)
Construct an exception, pass the domainObject for which the key cannot be found.

Parameters:
domainObject - some object that was attempted to be stored/fetched/deleted from Riak but has no RiakKey field.
Method Detail

getDomainObject

public Object getDomainObject()
Get the object that triggered the exception

Returns:
the offending instance.


Copyright © 2012. All Rights Reserved.