Class AccountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.account.AccountException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccountOperationException, NoSuchAccountException, NoSuchSavingsAccountException
Basic exception class for bank operations. Should not be instantiated
directly (thus, the abstract qualifier).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AccountException
public AccountException(int number) - Parameters:
number-
-
-
Method Details
-
getNumber
public int getNumber()- Returns:
- the account number
-