Liking cljdoc? Tell your friends :D

ring.middleware.stacktrace

Middleware that catches exceptions thrown by the handler, and reports the
error and stacktrace via a webpage and STDERR log.

This middleware is for debugging purposes, and should be limited to
development environments.

wrap-stacktrace

Type: var

Arguments:

[handler]
[handler options]
Wrap a handler such that exceptions are caught, a corresponding stacktrace is
logged to *err*, and a HTML representation of the stacktrace is returned as a
response.

Accepts the following option:

:color? - if true, apply ANSI colors to terminal stacktrace (default false)

View source

wrap-stacktrace-log

Type: var

Arguments:

[handler]
[handler options]
Wrap a handler such that exceptions are logged to *err* and then rethrown.
Accepts the following options:

:color? - if true, apply ANSI colors to stacktrace (default false)

View source

wrap-stacktrace-web

Type: var

Arguments:

[handler]
Wrap a handler such that exceptions are caught and a response containing
a HTML representation of the exception and stacktrace is returned.

View source

Can you improve this documentation?Edit on GitHub

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

× close