|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdowney.ErrorStore
This class provides a mechanism for saving error messages.
Instead of writing messages to System.out.println, a class can extend
this class and use the setError and getError methods to record and
retrireve error messages.
Field Summary | |
protected java.lang.String |
m_strError
The string that holds the error store |
Constructor Summary | |
ErrorStore()
Creates a new instance of ErrorStore. |
Method Summary | |
void |
addError(java.lang.String strError)
Add to the error store. |
void |
clearError()
Empty the error store. |
java.lang.String |
getError()
Retrieve the error store. |
void |
setError(java.lang.String strError)
Set the error store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String m_strError
Constructor Detail |
public ErrorStore()
Method Detail |
public java.lang.String getError()
public void clearError()
public void setError(java.lang.String strError)
strError
- The new value for the error store.public void addError(java.lang.String strError)
strError
- The value to be appended to the error store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |