org.starhope.appius.except
Class NonSufficientFundsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.starhope.appius.except.NonSufficientFundsException
- All Implemented Interfaces:
- Serializable
public class NonSufficientFundsException
- extends Exception
This exception may be thrown for a purchase attempt by a player who
does not have enough (in-game) currency to afford the item being
purchased.
This has nothing to do with actual real-world money.
- Author:
- brpocock@star-hope.org
- See Also:
- Serialized Form
serialVersionUID
private static final long serialVersionUID
- Java serialisation unique ID
- See Also:
- Constant Field Values
lack
private final BigDecimal lack
- the amount of money lacking
NonSufficientFundsException
public NonSufficientFundsException(BigDecimal difference)
- Parameters:
difference
- how much more currency is needed to make the
transaction work
toString
public String toString()
- Overrides:
toString
in class Throwable
- See Also:
Throwable.toString()