(default-logger ctx e)
(ex->backward-compat-format e)
(last-ditch-response e)
(make-error-handler {:blueprint.handler.error/keys [logger reveal? datafy?]
:or {logger default-logger reveal? false datafy? false}})
Process incoming exception, log if necessary with a provided logger
and produce a valid error message from it.
::reveal?
dictates whether we will take the original
ex-message
(when true) or another value. ::reveal?
can be
defined at multiple levels.
::datafy?
dictates whether we will convert the exception to data or not.
Default is false
ex->format
multimethodWhen ::reveal?
is false, if the exception ex-data contains an
:http/message
at any level this key value will be displayed,
otherwise it will take the :http/message
returned by the
ex->format
multimethod.
Process incoming exception, log if necessary with a provided `logger` and produce a valid error message from it. `::reveal?` dictates whether we will take the original `ex-message` (when true) or another value. `::reveal?` can be defined at multiple levels. `::datafy?` dictates whether we will convert the exception to data or not. Default is `false` * takes value of the ex-data * or takes the one returned by `ex->format` multimethod * or takes the one from the interceptor default (defaults to false) When `::reveal?` is false, if the exception ex-data contains an `:http/message` at any level this key value will be displayed, otherwise it will take the `:http/message` returned by the `ex->format` multimethod.
(not-found)
(not-found msg)
A helper to build a properly formatted not-found exception
A helper to build a properly formatted not-found exception
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close