May 2009
Intermediate to advanced
61 pages
1h 41m
English
Now that we've discussed how to handle and throw exceptions in theory, let's examine some principles and design patterns that will best help us do that in practice.
If you drive a car, you probably have automobile insurance. But even though you may be covered by insurance, an accident can be pretty expensive, financially and otherwise. You would probably agree that no matter how much insurance you may have in place, it's smart to be a "defensive driver" and avoid getting into an accident in the first place.
Exceptions are like accidents, and exception handling is like car insurance. While it's vitally important to have and though it may get you "back on the road," it's no substitute ...
Read now
Unlock full access