0.2.3 permalink Arrow_down_16x16

wrap-stacktrace

ring.middleware.stacktrace

  • (wrap-stacktrace app)
Wrap an app such that exceptions thrown within the wrapped app are caught
and a helpful debugging response is returned.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/middleware/stacktrace.clj:53 top

(defn wrap-stacktrace
  "Wrap an app such that exceptions thrown within the wrapped app are caught 
  and a helpful debugging response is returned."
  [app]
  (fn [req]
    (try
      (app req)
      (catch Exception e
        (ex-response req e)))))
Vars in ring.middleware.stacktrace/wrap-stacktrace: defn fn
Used in 0 other vars

Comments top

No comments for wrap-stacktrace. Log in to add a comment.