fishPond
Class IllegalFishDirectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fishPond.IllegalFishDirectionException
All Implemented Interfaces:
java.io.Serializable

public class IllegalFishDirectionException
extends java.lang.RuntimeException

Thrown when a fish's direction is not set to one of the four static constants (Fish.UP, Fish.DOWN, Fish.LEFT, Fish.RIGHT).

Author:
Fawzi Emad
See Also:
Serialized Form

Constructor Summary
IllegalFishDirectionException(int direction)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalFishDirectionException

public IllegalFishDirectionException(int direction)
Parameters:
direction - the incorrect direction code


Web Accessibility