fishPond
Class IllegalPlantPositionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
fishPond.IllegalPlantPositionException
- All Implemented Interfaces:
- java.io.Serializable
public class IllegalPlantPositionException
- extends java.lang.RuntimeException
Thrown when a plant is positioned in a way that doesn't make sense (either
above another plant, or over a rock.)
- Author:
- Fawzi Emad
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TWO_PLANTS_IN_ONE_PLACE
public static final int TWO_PLANTS_IN_ONE_PLACE
- See Also:
- Constant Field Values
PLANT_OVER_ROCK
public static final int PLANT_OVER_ROCK
- See Also:
- Constant Field Values
IllegalPlantPositionException
public IllegalPlantPositionException(int code)
- Parameters:
code
- either TWO_PLANTS_IN_ONE_PLACE, or PLANT_OVER_ROCK
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
getCode
public int getCode()
Web Accessibility