Objectives
Typical error-handling techniques and how to ignore them
How to suppress errors
How to dodge responsibility for handling errors altogether
How to make error-handling as messy an affair as possible
Prerequisites
Assertions
Exceptions, including some of the most common exception types in Java (e.g., NullPointerException, IOException)
Stack traces
Introduction
Any man can make mistakes, but only a fool persists in his error.
—Cicero
As if you couldn’t guess, making a mess of error-handling is a great ...