Skip to content

Commit 960012c

Browse files
committed
ex-data or slingshot
1 parent 4c1a3e3 commit 960012c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ To see this in action, try `lein run` and navigate to Components api group.
437437
All exceptions should be handled gracefully. Compojure-api ships with customizable exception handling with good
438438
defaults. Customization is done via `api` options - delegating to `compojure.api.middleware/wrap-exceptions`, which
439439
does the real work. It catches all thrown exceptions and selects a custom handler based on the thrown exception
440-
`ex-data` value of key `:type`. If an exception doesn't have ex-data (e.g. legacy Java Exceptions),
440+
`ex-data` or Slingshot value of key `:type`. If an exception doesn't have ex-data (e.g. legacy Java Exceptions),
441441
`:compojure.api.exception/default` type is used. Exception handlers are 3-arity functions, getting the exception,
442442
ex-data and request as arguments. Below are the default type definitions and default handling:
443443

0 commit comments

Comments
 (0)