Ring middleware for handling Exceptions thrown in API request handler functions.
Ring middleware for handling Exceptions thrown in API request handler functions.
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close