bank
Class NegativeAmount

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--bank.NegativeAmount
All Implemented Interfaces:
java.io.Serializable

public class NegativeAmount
extends java.lang.Exception

See Also:
Serialized Form

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

NegativeAmount

public NegativeAmount()
Creates a new instance of NegativeAmount without detail message.


NegativeAmount

public NegativeAmount(java.lang.String msg)
Constructs an instance of NegativeAmount with the specified detail message.

Parameters:
msg - the detail message.

NegativeAmount

public NegativeAmount(java.lang.String msg,
                      double amt)
Constructs an instance of NegativeAmount with the specified detail message.

Parameters:
msg - the detail message.
Method Detail

getAmount

public double getAmount()
To obtain the amount that was negative and shouldn't have been