Class BalanceTooLowException

All Implemented Interfaces:
Serializable

public class BalanceTooLowException extends BankAccountException
Balance is lower than amount being withdrawn.
See Also:
Serialized Form
  • Constructor Details

    • BalanceTooLowException

      public BalanceTooLowException(int account, double balance, double amount)
      Parameters:
      account -
      balance -
      amount -
  • Method Details

    • getBalance

      public double getBalance()
      Returns:
      the balance
    • getAmount

      public double getAmount()
      Returns:
      the invalid amount