mirror of
https://github.com/metosin/reitit.git
synced 2026-02-14 23:35:16 +00:00
fix docs
This commit is contained in:
parent
a9b0a2ef73
commit
0d165e799f
2 changed files with 8 additions and 8 deletions
|
|
@ -48,10 +48,10 @@ Creates the exception-middleware with custom options. Takes a map of `identifier
|
||||||
|
|
||||||
The following handlers special keys are available:
|
The following handlers special keys are available:
|
||||||
|
|
||||||
| key | description
|
| key | description
|
||||||
|--------------|-------------
|
|------------------------|-------------
|
||||||
| `::default` | a default exception handler if nothing else mathced (default `exception/default-handler`).
|
| `::exception/default` | a default exception handler if nothing else mathced (default `exception/default-handler`).
|
||||||
| `::wrap` | a 3-arity handler to wrap the actual handler `handler exception request => response` (no default).
|
| `::exception/wrap` | a 3-arity handler to wrap the actual handler `handler exception request => response` (no default).
|
||||||
|
|
||||||
The handler is selected from the options map by exception idenfitifier in the following lookup order:
|
The handler is selected from the options map by exception idenfitifier in the following lookup order:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,10 +121,10 @@
|
||||||
|
|
||||||
The following handlers special handlers are available:
|
The following handlers special handlers are available:
|
||||||
|
|
||||||
| key | description
|
| key | description
|
||||||
|--------------|-------------
|
|------------------------|-------------
|
||||||
| `::default` | a default exception handler if nothing else mathced (default [[default-handler]]).
|
| `::exception/default` | a default exception handler if nothing else mathced (default [[default-handler]]).
|
||||||
| `::wrap` | a 3-arity handler to wrap the actual handler `handler exception request => response`
|
| `::exception/wrap` | a 3-arity handler to wrap the actual handler `handler exception request => response`
|
||||||
|
|
||||||
The handler is selected from the options map by exception idenfiter
|
The handler is selected from the options map by exception idenfiter
|
||||||
in the following lookup order:
|
in the following lookup order:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue