exceptions
Class RushHourException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| 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 |
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.