File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ To see this in action, try `lein run` and navigate to Components api group.
437
437
All exceptions should be handled gracefully. Compojure-api ships with customizable exception handling with good
438
438
defaults. Customization is done via `api ` options - delegating to `compojure.api.middleware /wrap-exceptions `, which
439
439
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),
441
441
`:compojure.api.exception /default ` type is used. Exception handlers are 3 -arity functions , getting the exception ,
442
442
ex-data and request as arguments. Below are the default type definitions and default handling:
443
443
You can’t perform that action at this time.
0 commit comments