Class IllegalStatValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalException
edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalStatValueException
- All Implemented Interfaces:
Serializable
This exception is thrown when a stat value is not valid.
- Author:
- Brage Halvorsen Kvamme
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a new IllegalStatValueException with the specified lower bound of zero.IllegalStatValueException
(int lowerBounds) This method constructs a new IllegalStatValueException with the specified lower bound for legal values.IllegalStatValueException
(int lowerBounds, int upperBounds) This method constructs a new IllegalStatValueException with the specified bounds for legal values. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalStatValueException
public IllegalStatValueException(int lowerBounds, int upperBounds) This method constructs a new IllegalStatValueException with the specified bounds for legal values.- Parameters:
lowerBounds
- The lower bound of the stat value, given as an intupperBounds
- The upper bound of the stat value, given as an int
-
IllegalStatValueException
public IllegalStatValueException(int lowerBounds) This method constructs a new IllegalStatValueException with the specified lower bound for legal values.- Parameters:
lowerBounds
- The lower bound of the stat value, given as an int
-
IllegalStatValueException
public IllegalStatValueException()This method constructs a new IllegalStatValueException with the specified lower bound of zero.
-