Package bank.exceptions
Class AccountHolderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.exceptions.AccountHolderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DuplicateClientException
Basic exception class for holder-related problems. 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
-
AccountHolderException
- Parameters:
id-name-
-
-
Method Details
-
getId
public int getId()- Returns:
- the holder id
-
getHolderName
- Returns:
- the holder name
-