Created
December 4, 2010 19:47
-
-
Save bendlas/728427 to your computer and use it in GitHub Desktop.
Case for wrapped exception issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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