Lecture 20
9
When you detect an error, consider
•printing something
•returning something the client can examine
•setting the value of some global (class) variable that a client can look at
•shutting the program down
•throwing an Exception a client can catch
•