Package bank.exceptions
Class BankAccountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.exceptions.BankAccountException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BalanceTooLowException,InvalidDepositException,InvalidRemovalException,InvalidWithdrawalException,NegativeAmountException
Basic exception class for bank operations. Should not be instantiated
directly (thus, the abstract qualifier).
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BankAccountException
public BankAccountException(int account)- Parameters:
account-
-
-
Method Details
-
getAccount
public int getAccount()- Returns:
- the account
-