Liking cljdoc? Tell your friends :D

wagoe.devtools.shell.http-error-middleware

Dev-mode HTTP error enrichment middleware.

NOT the supported path, and nothing in the framework wires it. The application injects :wagoe/dev-error-enricher (see module-wiring) and the platform interceptor calls it; that route is gated on the environment and returns a code, a category and a fix. This one attaches :dev-info containing the formatted block — stacktrace included — to ex-data, so whatever includes ex-data in a response would put a stacktrace in it. Kept for an application that wired it by hand before BOU-321.

Positioned INSIDE the exception handler: catches exceptions, runs the error pipeline, re-throws with :dev-info attached.

Dev-mode HTTP error enrichment middleware.

NOT the supported path, and nothing in the framework wires it. The
application injects `:wagoe/dev-error-enricher` (see module-wiring) and the
platform interceptor calls it; that route is gated on the environment and
returns a code, a category and a fix. This one attaches `:dev-info`
containing the *formatted* block — stacktrace included — to ex-data, so
whatever includes ex-data in a response would put a stacktrace in it.
Kept for an application that wired it by hand before BOU-321.

Positioned INSIDE the exception handler: catches exceptions, runs the error
pipeline, re-throws with :dev-info attached.
raw docstring

wrap-dev-error-enrichmentclj

(wrap-dev-error-enrichment handler)

Ring middleware that enriches exceptions with dev-info in dev mode. Catches exceptions, runs the error pipeline, attaches result as :dev-info in the exception's ex-data, and re-throws. The outer error handling middleware can then include :dev-info in its Problem Details response.

Ring middleware that enriches exceptions with dev-info in dev mode.
Catches exceptions, runs the error pipeline, attaches result as
:dev-info in the exception's ex-data, and re-throws.
The outer error handling middleware can then include :dev-info
in its Problem Details response.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close