1.2.0 permalink Arrow_down_16x16
  • (throw-arg & args)
Throws an IllegalArgumentException. All arguments are optional:

cause? format? format-args*

- cause defaults to nil, if present it must be a Throwable
- format is a format string for clojure.core/format
- format-args are objects that correspond to format specifiers in
format.

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:57 top

(defn throw-arg
  "Throws an IllegalArgumentException. All arguments are optional:

        cause? format? format-args*

  - cause defaults to nil, if present it must be a Throwable
  - format is a format string for clojure.core/format
  - format-args are objects that correspond to format specifiers in
    format."
  [& args]
  (throw (throwable (cons IllegalArgumentException args))))
Vars in clojure.contrib.except/throw-arg: cons defn
Used in 0 other vars

Comments top

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