|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avian.foods.basefoods.StdFood
com.avian.errs.Err
public class Err
Used to report errors, extended from StdFood for convenience. Might make sense to create a StdErr that has additional error reporting capabilities than what we can get from StdFood. Errors should probably include the contents object that the bird choked on. For example, if a bird was expecting a contents object with a Long variable named "milesToAlphaCentauri" and the contents object that it received did NOT contain this variable, it would be useful to see what was in the contents object that it received.
Constructor Summary | |
---|---|
Err()
Default (and only) constructor for the error food type. |
Method Summary | |
---|---|
void |
addToErrorHistory(java.lang.String errMsg)
Adds the error event description to its history. |
Methods inherited from class com.avian.foods.basefoods.StdFood |
---|
addToFoodHistory, getContents, getDescription, getFoodType, getHistory, getName, setContents, setDescription, setFoodType, setHistory, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Err()
Method Detail |
---|
public void addToErrorHistory(java.lang.String errMsg)
errMsg
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |