Class NegativeAmountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.account.AccountException
bank.account.AccountOperationException
bank.account.NegativeAmountException
- All Implemented Interfaces:
Serializable
Exception for negative amounts.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AccountOperationException
getAmountMethods inherited from class AccountException
getNumberMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NegativeAmountException
public NegativeAmountException(int number, double amount) - Parameters:
number- the account numberamount- the invalid amount
-