/// <summary>
 /// Creates a new exception with a message.
 /// </summary>
 /// <param name="account">The account that has insufficient funds.</param>
 /// <param name="transaction">The transaction that provoked the error.</param>
 public NoSufficientFundsException(BankAccount account, Transaction transaction)
     : base("There are not sufficient funds to perform this transaction.")
 {
     this.account = account;
     this.transaction = transaction;
 }
 /// <summary>
 /// Creates a new exception with a message.
 /// </summary>
 /// <param name="transaction">The transaction being performed.</param>
 public InvalidTransactionAmtException(Transaction transaction)
     : base("Invalid transaction amount. Amount must be greater than $0.00")
 {
     this.transaction = transaction;
 }