Lecture 20
14
Real Bank example
•Suppose a customer tries to withdraw more than is in her account.
•Eventually BankAccount.java line 143 executes:
• if (newBalance < 0) {                   throw new    InsufficientFundsException …
•Read code backward looking for messages (method invocations) to trace methods that are active at that moment in order to see where that Exception is caught
–