add-cause-restarts

swank.core

  • (add-cause-restarts restarts thrown)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/core.clj:151 top

(defn add-cause-restarts [restarts thrown]
  (loop [restarts restarts
         cause (.getCause thrown)
         level 1]
    (if cause
      (recur
       (conj restarts (cause-restart-for cause level))
       (.getCause cause)
       (inc level))
      restarts)))
Vars in swank.core/add-cause-restarts: conj defn inc loop
Used in 0 other vars

Comments top

No comments for add-cause-restarts. Log in to add a comment.