exceptions
Class IllegalBoardMoveException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by exceptions.RushHourException
                  extended by exceptions.IllegalBoardMoveException
All Implemented Interfaces:
java.io.Serializable

public class IllegalBoardMoveException
extends RushHourException

Chiefly concerned with board moves being legal (not landing on another car, not jumping over cars, etc.).

See Also:
Serialized Form

Constructor Summary
IllegalBoardMoveException(java.lang.String color)
          The vehicle cannot move in the specified direction or the specified number of spaces on the board.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalBoardMoveException

public IllegalBoardMoveException(java.lang.String color)
The vehicle cannot move in the specified direction or the specified number of spaces on the board.