Class BalanceTooLowException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.account.AccountException
bank.account.AccountOperationException
bank.account.BalanceTooLowException
- All Implemented Interfaces:
Serializable
Balance is lower than amount being withdrawn.
- 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
-
BalanceTooLowException
public BalanceTooLowException(int number, double balance, double amount) - Parameters:
number- account numberbalance-amount-
-
-
Method Details
-
getBalance
public double getBalance()- Returns:
- the balance
-