1.2.0 permalink Arrow_down_16x16
  • (throwf & args)
Throws an Exception or Error with an optional message formatted using
clojure.core/format. All arguments are optional:

class? cause? format? format-args*

- class defaults to Exception, if present it must name a kind of
Throwable
- 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:28 top

(defn throwf
  "Throws an Exception or Error with an optional message formatted using
  clojure.core/format. All arguments are optional:

      class? cause? format? format-args*

  - class defaults to Exception, if present it must name a kind of
    Throwable
  - 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 args)))
Vars in clojure.contrib.except/throwf: defn
Used in 0 other vars

Comments top

No comments for throwf. Log in to add a comment.