|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.speakright.core.SRError
public class SRError
Manages error tracking. Various SpeakRight classes will have SRError objects to track their own errors. The failed method merges errors into a parent SRError.
| Constructor Summary | |
|---|---|
SRError()
|
|
SRError(java.lang.String component)
|
|
| Method Summary | |
|---|---|
boolean |
failed()
|
boolean |
failed(SRError parent)
Merges this objects errors with parent. |
boolean |
failure()
Return true if an error has been reported. |
void |
logError(int errorCode,
java.lang.String description)
Reports an error. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SRError()
public SRError(java.lang.String component)
| Method Detail |
|---|
public void logError(int errorCode,
java.lang.String description)
errorCode - ??description - friendly descriptionpublic boolean failure()
public boolean failed(SRError parent)
parent - A SRError object owned by a higher-level object
public boolean failed()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||