Class InvalidMoveException

All Implemented Interfaces:
Serializable

public class InvalidMoveException extends RuntimeException
Thrown when an invalid move is attempted in the game.
See Also:
  • Constructor Details

    • InvalidMoveException

      public InvalidMoveException()
      Constructs a new InvalidMoveException with no detail message.
    • InvalidMoveException

      public InvalidMoveException(String message)
      Constructs a new InvalidMoveException with the specified detail message.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)