File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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.
437437All exceptions should be handled gracefully. Compojure-api ships with customizable exception handling with good
438438defaults. Customization is done via `api ` options - delegating to `compojure.api.middleware /wrap-exceptions `, which
439439does 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 ,
442442ex-data and request as arguments. Below are the default type definitions and default handling:
443443
You can’t perform that action at this time.
0 commit comments