Class DeadTurtleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
DeadTurtleException
- All Implemented Interfaces:
- Serializable
- public class DeadTurtleException
- extends RuntimeException
A DeadTurtleException is thrown whenever you try to give a command to a turtle that
is dead. Anything that would modify the Turtle is disallowed; anything that
just observes the turtle (such as getColor() or isAlive()) is OK. Presumably
you can see the color of the corpse, but you can't ask it to move.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DeadTurtleException
public DeadTurtleException(String message)