Class IncorrectDiceValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
io.github.mathieusoysal.exception.IncorrectDiceValueException
- All Implemented Interfaces:
Serializable
An exception indicating that an incorrect dice value was provided.
This exception is thrown when a dice value is outside the valid range [1, 6].
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an IncorrectDiceValueException with a default error 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
-
IncorrectDiceValueException
public IncorrectDiceValueException()Constructs an IncorrectDiceValueException with a default error message. The default error message states that the dice value must be between 1 and 6.
-