Class InvalidMoveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.xxdc.oss.example.InvalidMoveException
- All Implemented Interfaces:
Serializable
Thrown when an invalid move is attempted in the game.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newInvalidMoveExceptionwith no detail message.InvalidMoveException(String message) Constructs a newInvalidMoveExceptionwith the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidMoveException
public InvalidMoveException()Constructs a newInvalidMoveExceptionwith no detail message. -
InvalidMoveException
Constructs a newInvalidMoveExceptionwith the specified detail message.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method)
-