Class LackingResourceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
wizardquest.gamemanager.LackingResourceException
All Implemented Interfaces:
Serializable

public class LackingResourceException extends Exception
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 Details

    • LackingResourceException

      public LackingResourceException()
      Throw the exception without a message or cause
    • LackingResourceException

      public LackingResourceException(String message)
      Throws the exception with a message to be displayed to the developer.
      Parameters:
      message - the message to display.
    • LackingResourceException

      public 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.
      Parameters:
      message - the message to display.
      cause - the cause for the exception.