Skip to content

Instantly share code, notes, and snippets.

@pcomans
Created July 18, 2011 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcomans/1090074 to your computer and use it in GitHub Desktop.
Save pcomans/1090074 to your computer and use it in GitHub Desktop.
(defn throw-catch [f]
[(try
(f)
(catch ArithmeticException e "No dividing by zero!")
(catch Exception e (str "You are so bad " (.getMessage e)))
(finally (println "returning... ")))])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment