public static class Preferences.ImproperPreferenceKeyException extends java.lang.RuntimeException
| Constructor and Description |
|---|
ImproperPreferenceKeyException(java.lang.String value,
char letter)
Instantiates an exception with a descriptive message based on the
input.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
confirmString(java.lang.String value)
Tests if the given string is ok to use as a key in the preference
table.
|
static boolean |
isAcceptable(java.lang.String value)
Returns whether or not the given string is ok to use in the
preference table.
|
public ImproperPreferenceKeyException(java.lang.String value, char letter)
value - the illegal keyletter - the specific character that made it illegalpublic static void confirmString(java.lang.String value)
Preferences.ImproperPreferenceKeyException will be
thrown.value - the value to testpublic static boolean isAcceptable(java.lang.String value)
value - the string to check