Liking cljdoc? Tell your friends :D

metabase.middleware.exceptions

Ring middleware for handling Exceptions thrown in API request handler functions.

Ring middleware for handling Exceptions thrown in API request handler functions.
raw docstring

api-exception-responsecljmultimethod

(api-exception-response e)

Convert an exception from an API endpoint into an appropriate HTTP response.

Convert an exception from an API endpoint into an appropriate HTTP response.
sourceraw docstring

catch-api-exceptionsclj

(catch-api-exceptions handler)

Middleware that catches API Exceptions and returns them in our normal-style format rather than the Jetty 500 Stacktrace page, which is not so useful for our frontend.

Middleware that catches API Exceptions and returns them in our normal-style format rather than the Jetty 500
Stacktrace page, which is not so useful for our frontend.
sourceraw docstring

catch-uncaught-exceptionsclj

(catch-uncaught-exceptions handler)

Middleware that catches any unexpected Exceptions that reroutes them thru raise where they can be handled appropriately.

Middleware that catches any unexpected Exceptions that reroutes them thru `raise` where they can be handled
appropriately.
sourceraw docstring

genericize-exceptionsclj

(genericize-exceptions handler)

Catch any exceptions thrown in the request handler body and rethrow a generic 400 exception instead. This minimizes information available to bad actors when exceptions occur on public endpoints.

Catch any exceptions thrown in the request handler body and rethrow a generic 400 exception instead. This minimizes
information available to bad actors when exceptions occur on public endpoints.
sourceraw docstring

message-only-exceptionsclj

(message-only-exceptions handler)

Catch any exceptions thrown in the request handler body and rethrow a 400 exception that only has the message from the original instead (i.e., don't rethrow the original stacktrace). This reduces the information available to bad actors but still provides some information that will prove useful in debugging errors.

Catch any exceptions thrown in the request handler body and rethrow a 400 exception that only has the message from
the original instead (i.e., don't rethrow the original stacktrace). This reduces the information available to bad
actors but still provides some information that will prove useful in debugging errors.
sourceraw docstring

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

× close