Returns a function that throws a Java Exception with the given
name. Useful to associate a new error-kit error type with a
particular Java Exception class, via the :unhandled error key.
(defmacro throw-msg "Returns a function that throws a Java Exception with the given name. Useful to associate a new error-kit error type with a particular Java Exception class, via the :unhandled error key." [class-name] `(fn [x#] (throw (new ~class-name (:msg x#)))))
Comments top
No comments for throw-msg. Log in to add a comment.