exceptions
Class RushHourException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by exceptions.RushHourException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IllegalBoardMoveException, InvalidFirstVehicleException, InvalidVehicleColorException, InvalidVehicleException, OffGameBoardException, RedCarException, VehicleDoesNotExistException, VehicleOverlapException

public class RushHourException
extends java.lang.RuntimeException

Generic exception for the Rush Hour game which all other exceptions are extended from.

See Also:
Serialized Form

Constructor Summary
RushHourException()
          Generic Rush Hour exception.
RushHourException(int x, int y)
           
RushHourException(int x, int y, java.lang.String color)
           
RushHourException(java.lang.String color)
           
 
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

RushHourException

public RushHourException()
Generic Rush Hour exception.


RushHourException

public RushHourException(int x,
                         int y,
                         java.lang.String color)
Parameters:
x - The x-coordinate of a vehicle.
y - The y-coordinate of a vehicle.
color - The color of a vehicle.

RushHourException

public RushHourException(int x,
                         int y)
Parameters:
x - The x-coordinate of a vehicle.
y - The y-coordinate of a vehicle.

RushHourException

public RushHourException(java.lang.String color)
Parameters:
color - The color of a vehicle.