Package bank.exceptions
Class NoSuchSavingsAccountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.exceptions.NoSuchSavingsAccountException
- All Implemented Interfaces:
Serializable
Account does not exist.
- 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
-
NoSuchSavingsAccountException
public NoSuchSavingsAccountException(int id)- Parameters:
id-
-
-
Method Details
-
getId
public int getId()- Returns:
- the id
-