(ex-symbol env)
(should-be expected actual)
(thrown-ex-data body)
(thrown-ex-data ks body)
Catches an exception in body
and extracts the ex-data, to make it easy to
test exceptional code. If ks
is given, these keys are extracted from the
ex-data map.
If an exception is not thrown, it returns
{:expected-exception :was-not-thrown}
Catches an exception in `body` and extracts the ex-data, to make it easy to test exceptional code. If `ks` is given, these keys are extracted from the ex-data map. If an exception is not thrown, it returns `{:expected-exception :was-not-thrown}`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close