Skip to content

Instantly share code, notes, and snippets.

@bendlas
Created December 4, 2010 19:47
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 bendlas/728427 to your computer and use it in GitHub Desktop.
Save bendlas/728427 to your computer and use it in GitHub Desktop.
Case for wrapped exception issue
(ns wrap.fail)
(defn failing []
(throw (IndexOutOfBoundsException. "Failed")))
(defn wrappy []
(try
(failing)
(catch Throwable e
(throw (IllegalArgumentException. "Wrapped Fail" e)))))
(defn -main []
(wrappy))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment