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.

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.
raw docstring

wrap-stacktraceclj

(wrap-stacktrace handler)
(wrap-stacktrace 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)

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)
sourceraw docstring

wrap-stacktrace-logclj

(wrap-stacktrace-log handler)
(wrap-stacktrace-log 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)

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)
sourceraw docstring

wrap-stacktrace-webclj

(wrap-stacktrace-web handler)

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

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

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

× close