throw-if-not

clojure.contrib.except

  • (throw-if-not test & args)
Throws an Exception or Error if test is false. 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:50 top

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

Comments top

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