|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.fedmest.cw.keyboard.KeyboardInputException
public class KeyboardInputException
A keyboard validator (a class implementing KeyboardInputValidator
) will throw this exception when the input string does
not conform to the requirements of the expected data type. The exception should contain an error message that the framework will
display to the user before asking them to try again. The user will have to continue typing until validation succeeds. If this
object is given a source exception, it will be used by the framework to print out its stack trace.
Constructor Summary | |
---|---|
KeyboardInputException()
Creates a new instance of this exception with no message for the user and no cause. |
|
KeyboardInputException(java.lang.String message)
Creates a new instance of this exception with a message for the user but no cause. |
|
KeyboardInputException(java.lang.String message,
java.lang.Throwable cause)
Creates a new instance of this exception with a message for the user and a cause. |
|
KeyboardInputException(java.lang.Throwable cause)
Creates a new instance of this exception with a cause but no message for the user. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyboardInputException()
public KeyboardInputException(java.lang.String message, java.lang.Throwable cause)
message
- the error message that the user will seecause
- the cause that will provide the stack trace for displaypublic KeyboardInputException(java.lang.String message)
message
- the error message that the user will seepublic KeyboardInputException(java.lang.Throwable cause)
cause
- the cause that will provide the stack trace for display
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |