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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

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

× close