Chapter 20Clojure’s Exceptional Handling of Exceptions
by Stuart Halloway
If you don’t know about conditions, you should. Conditions are basically exception handling, but with greater flexibility. Many Lisps feature a condition system, and Clojure is no exception (pun inflicted by editor). Clojure’s condition system is called error-kit. In this chapter, you will learn how to use error-kit, and why you will prefer it to plain old exception handling.
You don’t need to have bought my book[20] to understand this article, but why wouldn’t you want to? ;) You can follow along throughout this article by entering the code at Clojure’s REPL. To install a REPL on your local machine, you can download the sample code from the book. The sample code has ...
Become 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,
and much more.
Read now
Unlock full access