|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--rolodex.InputErrors | +--rolodex.DeleteInputError
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.
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 |
protected boolean nerr
protected java.lang.String nerrstr
Constructor Detail |
public DeleteInputError()
Method Detail |
public StringList getErrorList()
getErrorList
in class InputErrors
public java.lang.String getNotThereErrorMessage()
public void setNotThereErrorMessage()
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |