|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectThrowable
Exception
InvalidInputException
public final class InvalidInputException
Checked exception thrown when a user input validation error occurs.
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 Summary | |
|---|---|
InvalidInputException()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InvalidInputException()
| Method Detail |
|---|
public void add(String aErrorMessage)
public List<String> getErrorMessages()
public boolean hasErrors()
add(String) has been called at least once.
|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||