Package wizardquest.gamemanager
Class LackingResourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
wizardquest.gamemanager.LackingResourceException
- All Implemented Interfaces:
Serializable
Exception representing an issue relating to a lack of entity resources.
Either a player is
attempting to purchase an upgrade which they have an insufficient coin total
for, or they
are attempting to use an ability which they have an insufficient magic total
for.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThrow the exception without a message or causeLackingResourceException(String message) Throws the exception with a message to be displayed to the developer.LackingResourceException(String message, Throwable cause) Throws the exception with a message to be displayed to the developer and a cause for the exception being thrown. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LackingResourceException
public LackingResourceException()Throw the exception without a message or cause -
LackingResourceException
Throws the exception with a message to be displayed to the developer.- Parameters:
message- the message to display.
-
LackingResourceException
Throws the exception with a message to be displayed to the developer and a cause for the exception being thrown.- Parameters:
message- the message to display.cause- the cause for the exception.
-