com.avian.errs
Class Err

java.lang.Object
  extended by com.avian.foods.basefoods.StdFood
      extended by com.avian.errs.Err
All Implemented Interfaces:
Manna

public class Err
extends StdFood

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

Err

public Err()
Default (and only) constructor for the error food type. Sets the fields to some reasonable default values.

Method Detail

addToErrorHistory

public void addToErrorHistory(java.lang.String errMsg)
Adds the error event description to its history.

Parameters:
errMsg -