Liking cljdoc? Tell your friends :D

sentry-clj.ring

Ring utility functions.

Ring utility functions.
raw docstring

wrap-report-exceptionsclj

(wrap-report-exceptions handler
                        {:keys [preprocess-fn postprocess-fn error-fn]
                         :or {preprocess-fn identity
                              postprocess-fn (comp second list)
                              error-fn default-error}})

Wraps the given handler in error reporting.

Optionally takes three functions:

  • :preprocess-fn, which is passed the request
  • :postprocess-fn, which is passed the request and the Sentry event
  • :error-fn, which is passed the request and the thrown exception and returns an appropriate Ring response
Wraps the given handler in error reporting.

Optionally takes three functions:

 * `:preprocess-fn`, which is passed the request
 * `:postprocess-fn`, which is passed the request and the Sentry event
 * `:error-fn`, which is passed the request and the thrown exception and returns an appropriate Ring response
 
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close