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

public abstract class BankAccountException extends Exception
Basic exception class for bank operations. Should not be instantiated directly (thus, the abstract qualifier).
See Also:
Serialized Form
  • Constructor Details

    • BankAccountException

      public BankAccountException(int account)
      Parameters:
      account -
  • Method Details

    • getAccount

      public int getAccount()
      Returns:
      the account