Package rushhour.model
Class MoveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
rushhour.model.MoveException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalMoveException
,MoveCollisionException
public class MoveException extends RuntimeException
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MoveException(Move.Direction dir, PlacedCar car)
-
Method Summary
Modifier and Type Method Description Move.Direction
getDirection()
PlacedCar
getPlacedCar()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString