• (throw-if test & args)
Throws an Exception or Error if test is true. args are those documented
for throwf.

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 clojure/contrib/except.clj:43 top

(defn throw-if
  "Throws an Exception or Error if test is true. args are those documented
  for throwf."
  [test & args]
  (when test
    (throw (throwable args))))
Vars in clojure.contrib.except/throw-if: defn test when
Used in 0 other vars

Comments top

No comments for throw-if. Log in to add a comment.