com.basho.riak.client.convert
Class NoKeySpecifedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getDomainObject
public Object getDomainObject()
- Get the object that triggered the exception
- Returns:
- the offending instance.
Copyright © 2012. All Rights Reserved.