Liking cljdoc? Tell your friends :D

qbits.ex


ancestorsclj

(ancestors tag)

Like clojure.core/ancestors but scoped on our ex-info type hierarchy

Like clojure.core/ancestors but scoped on our ex-info type hierarchy
sourceraw docstring

catch-clause?clj

source

catch-data-clause?clj

source

deriveclj

(derive tag parent)

Like clojure.core/derive but scoped on our ex-info type hierarchy

Like clojure.core/derive but scoped on our ex-info type hierarchy
sourceraw docstring

descendantsclj

(descendants tag)

Like clojure.core/descendants but scoped on our ex-info type hierarchy

Like clojure.core/descendants but scoped on our ex-info type hierarchy
sourceraw docstring

find-clause-fnclj

(find-clause-fn pred)
source

hierarchyclj

source

isa?clj

(isa? child parent)

Like clojure.core/isa? but scoped on our ex-info type hierarchy

Like clojure.core/isa? but scoped on our ex-info type hierarchy
sourceraw docstring

parentsclj

(parents tag)

Like clojure.core/parents but scoped on our ex-info type hierarchy

Like clojure.core/parents but scoped on our ex-info type hierarchy
sourceraw docstring

try+cljmacro

(try+ & xs)

Like try but with support for ex-info/ex-data.

If you pass a catch-ex-info form it will try to match an ex-info :type key, or it's potential ancestors in the local hierarchy.

ex-info clauses are checked first, in the order they were specified. catch-ex-info will take as arguments a :type key, and a binding for the ex-data of the ex-info instance.

(try [...] (catch-ex-info ::something my-ex-data (do-something my-ex-info)) (catch-ex-info ::something-else {:as my-ex-data :keys [foo bar]} (do-something foo bar)) (catch Exception e (do-something e)) (catch OtherException e (do-something e)) (finally :and-done))

You can specify normal catch clauses for regular java errors and/or finally these are left untouched.

There is no

Like try but with support for ex-info/ex-data.

If you pass a `catch-ex-info` form it will try to match an
ex-info :type key, or it's potential ancestors in the local hierarchy.

ex-info clauses are checked first, in the order they were specified.
catch-ex-info will take as arguments a :type key, and a binding for
the ex-data of the ex-info instance.

(try
  [...]
  (catch-ex-info ::something my-ex-data
    (do-something my-ex-info))
  (catch-ex-info ::something-else {:as my-ex-data :keys [foo bar]}
    (do-something foo bar))
  (catch Exception e
    (do-something e))
  (catch OtherException e
    (do-something e))
  (finally :and-done))

You can specify normal catch clauses for regular java errors and/or
finally these are left untouched.

There is no
sourceraw docstring

underiveclj

(underive tag parent)

Like clojure.core/underive but scoped on our ex-info type hierarchy

Like clojure.core/underive but scoped on our ex-info type hierarchy
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close