public final class InvalidInputException extends Exception
Most applications need to handle erroneous user input in a controlled way. When user input is found to be invalid, objects of this class are created and thrown, and appropriate error messages are displayed to the user.
Constructor and Description |
---|
InvalidInputException() |
Modifier and Type | Method and Description |
---|---|
void |
add(String aErrorMessage)
Add a new error message to this exception.
|
List<String> |
getErrorMessages()
Return an unmodfiable list of error messages.
|
boolean |
hasErrors()
Return true only if
add(String) has been called at least once. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidInputException()
public List<String> getErrorMessages()
public boolean hasErrors()
add(String)
has been called at least once.Copyright Hirondelle Systems - Generated 2013Sep20.11.16