(error-dispatch binding-vector & match-forms)Return an interceptor for doing pattern-matched error-dispatch, based on
the ex-data of the exception.
Pedestal wraps all exceptions in ex-info on error, providing the following
keys to match on: :execution-id, :stage, :interceptor, :exception-type
This allows you to match the exact exception type, per interceptor/handler, and even constrain it to a single stage (:enter, :leave, :error).
:exception-type is a keyword of the exception's type, for example,
`:java.lang.ArithmeticException
Return an interceptor for doing pattern-matched error-dispatch, based on the ex-data of the exception. Pedestal wraps *all* exceptions in ex-info on error, providing the following keys to match on: `:execution-id`, `:stage`, `:interceptor`, `:exception-type` This allows you to match the exact exception type, per interceptor/handler, and even constrain it to a single stage (:enter, :leave, :error). `:exception-type` is a keyword of the exception's type, for example, `:java.lang.ArithmeticException
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |