February 2018
Intermediate to advanced
304 pages
7h 11m
English
Content preview from Programming Clojure, 3rd EditionBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial



Exception Handling
In Java code, exception handling crops up for three reasons:
-
Wrapping checked exceptions (see Checked Exceptions if you’re unfamiliar with checked exceptions)
-
Using a finally block to clean up nonmemory resources, such as file and network handles
-
Responding to the problem: ignoring the exception, retrying the operation, converting the exception to a nonexceptional result, and so on