Liking cljdoc? Tell your friends :D

clojure-commons.assertions


assert-foundclj

(assert-found obj desc id)

Asserts that an object to modify or retrieve was found.

Asserts that an object to modify or retrieve was found.
raw docstring

assert-not-foundclj

(assert-not-found obj desc id)

Asserts that an object that is being created is not a duplicate.

Asserts that an object that is being created is not a duplicate.
raw docstring

assert-validclj

(assert-valid valid? & msgs)

Throws an exception if an arbitrary expression is false.

Throws an exception if an arbitrary expression is false.
raw docstring

bad-requestclj

(bad-request reason)

Throws an exception indicating that the incoming request is invalid.

Throws an exception indicating that the incoming request is invalid.
raw docstring

not-foundclj

(not-found desc id)

Throws an exception indicating that an object wasn't found.

Throws an exception indicating that an object wasn't found.
raw docstring

not-ownerclj

(not-owner desc id)

Throws an exception indicating that the user isn't permitted to perform the requested option.

Throws an exception indicating that the user isn't permitted to perform the requested option.
raw docstring

not-uniqueclj

(not-unique desc id & [extra-fields])

Throws an exception indicating that multiple objects were found when only one was expected.

Throws an exception indicating that multiple objects were found when only one was expected.
raw docstring

request-failureclj

(request-failure & msgs)

Throws an exception indicating that a request failed for an unexpected reason.

Throws an exception indicating that a request failed for an unexpected reason.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close