rolodex
Class DeleteInputError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--rolodex.InputErrors
                    |
                    +--rolodex.DeleteInputError
All Implemented Interfaces:
java.io.Serializable

public class DeleteInputError
extends InputErrors

Class DeleteInputError defines an exception object containing the input error condition for the Rolodex.Delete function. DeleteInputError is a tuple of on/off error flug plus corresponding error message, indicating an error condition that a card of the id given to delete is not in the rolodex.

See Also:
Serialized Form

Field Summary
protected  boolean nerr
          True if a card of the given id is not in the rolodex
protected  java.lang.String nerrstr
          Error message for card already there
 
Constructor Summary
DeleteInputError()
          Construct this by initializing the flag to false (i.e., off) and initializaing the error message to an appropriate string value.
 
Method Summary
 void clear()
          Turn the error message flag off.
 StringList getErrorList()
          Return the current list of errors, if any.
 java.lang.String getNotThereErrorMessage()
          Return the text of the error message.
 void setNotThereErrorMessage()
          Turn on the error message flag.
 
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
 

Field Detail

nerr

protected boolean nerr
True if a card of the given id is not in the rolodex


nerrstr

protected java.lang.String nerrstr
Error message for card already there

Constructor Detail

DeleteInputError

public DeleteInputError()
Construct this by initializing the flag to false (i.e., off) and initializaing the error message to an appropriate string value.

Method Detail

getErrorList

public StringList getErrorList()
Return the current list of errors, if any.

Overrides:
getErrorList in class InputErrors

getNotThereErrorMessage

public java.lang.String getNotThereErrorMessage()
Return the text of the error message.


setNotThereErrorMessage

public void setNotThereErrorMessage()
Turn on the error message flag.


clear

public void clear()
Turn the error message flag off.