Raises a condition. With no arguments, re-raises the current condition.
With one argument (a map), raises the argument. With two or more
arguments, raises a map with keys and values from the arguments.
(defmacro raise
"Raises a condition. With no arguments, re-raises the current condition.
With one argument (a map), raises the argument. With two or more
arguments, raises a map with keys and values from the arguments."
([]
`(throw *condition-object*))
([m]
`(throw (Condition. ~m)))
([key val & keyvals]
`(raise (hash-map ~key ~val ~@keyvals))))
Comments top
No comments for raise. Log in to add a comment.