Liking cljdoc? Tell your friends :D

blueprint.handler.error


default-loggerclj

(default-logger ctx e)

ex->backward-compat-formatclj

(ex->backward-compat-format e)

ex->formatcljmultimethod


interceptorclj


last-ditchclj


last-ditch-responseclj

(last-ditch-response e)

make-error-handlerclj

(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

  • 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.

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.
raw docstring

never-datafy-outclj


not-foundclj

(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
raw docstring

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

× close