From 0d165e799f43fc01b3f281938957a33633bac0e5 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Fri, 3 Aug 2018 13:31:21 +0300 Subject: [PATCH] fix docs --- doc/ring/default_middleware.md | 8 ++++---- .../src/reitit/ring/middleware/exception.clj | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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: