Package bank.exceptions
Class InvalidDepositException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.exceptions.BankAccountException
bank.exceptions.InvalidDepositException
- All Implemented Interfaces:
Serializable
Exception for unsuccessful deposit operations.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class bank.exceptions.BankAccountException
getAccountMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidDepositException
public InvalidDepositException(int account, double amount)- Parameters:
account-amount-
-
-
Method Details
-
getAmount
public double getAmount()- Returns:
- the amount
-