What to do when you get an error: 1. Read the error message. It might have a clue as to what the problem is. 2. Scan the backtrace for method names you may have called. 3. Analyze what situation might have caused the method(s) to throw the error.