|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
data.NotEnoughMoneyException
Exception thrown when an error occurs on transferring money from one MoneyBag to another.
| Field Summary | |
static int |
NO_FITTING_UNITS
Indicates that this Exception was thrown because it is not possible to sum up the available money to the amount to be removed. |
static int |
NOT_ENOUGH_MONEY
Indicates that this Exception was thrown because the money in the MoneyBag is less than the money to be removed. |
| Constructor Summary | |
NotEnoughMoneyException(int cause)
Creates a new NotEnoughMoneyException. |
|
NotEnoughMoneyException(String sDetail,
int cause)
Creates a new NotEnoughMoneyException with a detail message. |
|
| Method Summary | |
int |
cause()
Returns the cause for this exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NOT_ENOUGH_MONEY
public static final int NO_FITTING_UNITS
| Constructor Detail |
public NotEnoughMoneyException(int cause)
public NotEnoughMoneyException(String sDetail,
int cause)
sDetail - the detail message.| Method Detail |
public int cause()
NOT_ENOUGH_MONEY is
returned. If there was no way to sum up the money with the coins/bank notes available,
NO_FITTING_UNITS is returned.
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||