diff --git a/doc/ring/default_middleware.md b/doc/ring/default_middleware.md index f6470b30..8a037def 100644 --- a/doc/ring/default_middleware.md +++ b/doc/ring/default_middleware.md @@ -48,10 +48,10 @@ Creates the exception-middleware with custom options. Takes a map of `identifier The following handlers special keys are available: -| key | description -|--------------|------------- -| `::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). +| key | description +|------------------------|------------- +| `::exception/default` | a default exception handler if nothing else mathced (default `exception/default-handler`). +| `::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: diff --git a/modules/reitit-middleware/src/reitit/ring/middleware/exception.clj b/modules/reitit-middleware/src/reitit/ring/middleware/exception.clj index 1db6e7e4..d89a1c20 100644 --- a/modules/reitit-middleware/src/reitit/ring/middleware/exception.clj +++ b/modules/reitit-middleware/src/reitit/ring/middleware/exception.clj @@ -121,10 +121,10 @@ The following handlers special handlers are available: - | key | description - |--------------|------------- - | `::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` + | key | description + |------------------------|------------- + | `::exception/default` | a default exception handler if nothing else mathced (default [[default-handler]]). + | `::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 in the following lookup order: