Skip to content

Instantly share code, notes, and snippets.

@weissjeffm
Created December 8, 2010 18:50
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 weissjeffm/733706 to your computer and use it in GitHub Desktop.
Save weissjeffm/733706 to your computer and use it in GitHub Desktop.
(deferror myerror [] [s] {:msg (str "blerg! " s) :unhandled (throw-msg RuntimeException) })
(raise myerror "foo") ;; gives exception message "blerg! foo"
(def x myerror)
(raise x "foo") ;; gives exception message "blerg!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment