(check form & otherwise-msg-fragments)
Check if the given form is truthy, otherwise throw an exception with
the given message. Alternative to assert
that cannot be turned off
and throwing RuntimeException instead of Error.
Check if the given form is truthy, otherwise throw an exception with the given message. Alternative to `assert` that cannot be turned off and throwing RuntimeException instead of Error.
(check-expected form & otherwise-msg-fragments)
Check if the given form is truthy, otherwise throw an 'expected'
exception with the given message. Alternative to assert
that
cannot be turned off and throwing ex-info instead of Error.
Check if the given form is truthy, otherwise throw an 'expected' exception with the given message. Alternative to `assert` that cannot be turned off and throwing ex-info instead of Error.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |