My Movies 1.0.0

hirondelle.movies.exception
Class InvalidInputException

Object
  extended by Throwable
      extended by Exception
          extended by InvalidInputException
All Implemented Interfaces:
Serializable

public final class InvalidInputException
extends Exception

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.

See Also:
Serialized Form

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

InvalidInputException

public InvalidInputException()
Method Detail

add

public void add(String aErrorMessage)
Add a new error message to this exception.


getErrorMessages

public List<String> getErrorMessages()
Return an unmodfiable list of error messages.


hasErrors

public boolean hasErrors()
Return true only if add(String) has been called at least once.


My Movies 1.0.0

Copyright Hirondelle Systems - Generated 2008Dec30.15.53