|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--bank.NegativeAmount
Constructor Summary | |
NegativeAmount()
Creates a new instance of NegativeAmount without detail message. |
|
NegativeAmount(java.lang.String msg)
Constructs an instance of NegativeAmount with the specified detail message. |
|
NegativeAmount(java.lang.String msg,
double amt)
Constructs an instance of NegativeAmount with the specified detail message. |
Method Summary | |
double |
getAmount()
To obtain the amount that was negative and shouldn't have been |
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 |
Constructor Detail |
public NegativeAmount()
NegativeAmount
without detail message.
public NegativeAmount(java.lang.String msg)
NegativeAmount
with the specified detail message.
msg
- the detail message.public NegativeAmount(java.lang.String msg, double amt)
NegativeAmount
with the specified detail message.
msg
- the detail message.Method Detail |
public double getAmount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |