This is an internal namespace. Code here is subject to change.
Utility functions.
This is an internal namespace. Code here is subject to change. Utility functions.
(bad-key-arity n k)
Throw ArityException on behalf of key definition when invoked as a function.
Throw ArityException on behalf of key definition when invoked as a function.
(expect-arg value pred messages)
Validate given value using predicate, which if returns falsy then throws IllegalArgumentException.
Validate given value using predicate, which if returns falsy then throws IllegalArgumentException.
(expected expectation found)
(expected pred expectation found)
Throw illegal input exception citing expectation
and what was found
did not match. Optionally accept a predicate
fn to test found
before throwing the exception.
Throw illegal input exception citing `expectation` and what was `found` did not match. Optionally accept a predicate fn to test `found` before throwing the exception.
(expected-state expectation found)
(expected-state pred expectation found)
Throw illegal state exception citing expectation
and what was found
did not match. Optionally accept a predicate
fn to test found
before throwing the exception.
Throw illegal state exception citing `expectation` and what was `found` did not match. Optionally accept a predicate fn to test `found` before throwing the exception.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close