Class AccountHolderException

java.lang.Object
java.lang.Throwable
java.lang.Exception
bank.exceptions.AccountHolderException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DuplicateClientException

public abstract class AccountHolderException extends Exception
Basic exception class for holder-related problems. Should not be instantiated directly (thus, the abstract qualifier).
See Also:
Serialized Form
  • Constructor Details

    • AccountHolderException

      public AccountHolderException(int id, String name)
      Parameters:
      id -
      name -
  • Method Details

    • getId

      public int getId()
      Returns:
      the holder id
    • getHolderName

      public String getHolderName()
      Returns:
      the holder name