(request-validation-handler e data req)
Creates error response based on Schema error.
Creates error response based on Schema error.
(response-validation-handler e data req)
Creates error response based on Schema error.
Creates error response based on Schema error.
(safe-handler e data req)
Writes :error to log with the exception message & stacktrace.
Error response only contains class of the Exception so that it won't accidentally expose secret details.
Writes :error to log with the exception message & stacktrace. Error response only contains class of the Exception so that it won't accidentally expose secret details.
(schema-error-handler e data req)
Creates error response based on Schema error.
Creates error response based on Schema error.
(stringify-error error)
Stringifies symbols and validation errors in Schema error, keeping the structure intact.
Stringifies symbols and validation errors in Schema error, keeping the structure intact.
(with-logging handler)
(with-logging handler log-level)
Wrap compojure-api exception-handler a function which will log the exception message and stack-trace with given log-level.
Wrap compojure-api exception-handler a function which will log the exception message and stack-trace with given log-level.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close