Class AccountException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccountOperationException, NoSuchAccountException, NoSuchSavingsAccountException

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

    • AccountException

      public AccountException(int number)
      Parameters:
      number -
  • Method Details

    • getNumber

      public int getNumber()
      Returns:
      the account number