|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.wpi.first.wpilibj.Preferences.ImproperPreferenceKeyException
public static class Preferences.ImproperPreferenceKeyException
Should be thrown if a string can not be used as a key in the preferences file. This happens if the string contains a new line, a space, a tab, or an equals sign.
Constructor Summary | |
---|---|
Preferences.ImproperPreferenceKeyException(String value,
char letter)
Instantiates an exception with a descriptive message based on the input. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Throwable |
---|
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Preferences.ImproperPreferenceKeyException(String value, char letter)
value
- the illegal keyletter
- the specific character that made it illegalMethod Detail |
---|
public static void confirmString(String value)
Preferences.ImproperPreferenceKeyException
will be thrown.
value
- the value to testpublic static boolean isAcceptable(String value)
value
-
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |