public static class Preferences.ImproperPreferenceKeyException extends RuntimeException
| Constructor and Description |
|---|
ImproperPreferenceKeyException(String value,
char letter)
Instantiates an exception with a descriptive message based on the
input.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
confirmString(String value)
Tests if the given string is ok to use as a key in the preference
table.
|
static boolean |
isAcceptable(String value)
Returns whether or not the given string is ok to use in the
preference table.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ImproperPreferenceKeyException(String value, char letter)
value - the illegal keyletter - the specific character that made it illegalpublic static void confirmString(String value)
Preferences.ImproperPreferenceKeyException will be
thrown.value - the value to testpublic static boolean isAcceptable(String value)
value - the string to checkCopyright © 2015. All rights reserved.