Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
(def U0 (ex-info "U0" {}))
|
||||
(def U1 (ex-info "U1" {}))
|
||||
|
||||
(defn baz [x] (if (= x 0) (throw U0) (throw U1)))
|
||||
(defn bar [x] (baz x))
|
||||
|
||||
(defn foo []
|
||||
(dotimes [x 2]
|
||||
(try
|
||||
(bar x)
|
||||
(catch clojure.lang.ExceptionInfo e
|
||||
(if (= e U0)
|
||||
(println "foo caught U0")
|
||||
(throw e))))))
|
||||
|
||||
(defn -main [& args]
|
||||
(foo))
|
||||
Loading…
Add table
Add a link
Reference in a new issue