Skip to content

Instantly share code, notes, and snippets.

@yayitswei
Created February 27, 2014 04:18
Show Gist options
  • Save yayitswei/9244307 to your computer and use it in GitHub Desktop.
Save yayitswei/9244307 to your computer and use it in GitHub Desktop.
(defn wrap-exception [f]
(fn [request]
(try (f request)
(catch Exception e
{:status 500
:body "Exception caught"}))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment