Custom Exceptions in Clojure?
Rather than generating custom classes, there are two much simpler ways to use custom exceptions: Use slingshot – this provides custom throw+ and catch+ macros that let you throw and catch any object, as well as exceptions. In clojure 1.4 and above, you can use clojure.core/ex-info and clojure.core/ex-data to generate and catch a clojure.lang.ExceptionInfo class, … Read more