public static class SharedPreferencesCache.NotInCacheException
extends android.util.AndroidRuntimeException
SharedPreferencesCache to indicate
that they have no value stored for a requested key.
A client that uses a SharedPreferencesCache to store and retrieve preference values
should always check whether the cache contains the desired value via SharedPreferencesCache.contains(String)
to avoid this exception.
| Constructor and Description |
|---|
NotInCacheException(String key)
Creates a new instance of NotInCacheException for the specified key.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotInCacheException(String key)
key - The key for which to inform that it has no value associated within the cache.