Liking cljdoc? Tell your friends :D

libmisc-clj.errors


access-denied!clj

(access-denied! fmt & args)
source

auto-retrycljmacro

(auto-retry num-retries & body)

Execute BODY and return the results. If BODY fails with an exception, retry execution up to NUM-RETRIES times until it succeeds.

Execute BODY and return the results.
If BODY fails with an exception, retry execution up to NUM-RETRIES times until it succeeds.
sourceraw docstring

deref-with-timeoutclj

(deref-with-timeout reff timeout-ms)

Call deref on a something derefable (e.g. a future or promise), and throw an exception if it takes more than timeout-ms. If ref is a future it will attempt to cancel it as well.

Call `deref` on a something derefable (e.g. a future or promise), and throw an exception if it takes more than
`timeout-ms`. If `ref` is a future it will attempt to cancel it as well.
sourceraw docstring

do-with-auto-retries*clj

(do-with-auto-retries* num-retries f)

Execute F, a function that takes no arguments, and return the results. If F fails with an exception, retry F up to NUM-RETRIES times until it succeeds.

Execute F, a function that takes no arguments, and return the results.
If F fails with an exception, retry F up to NUM-RETRIES times until it succeeds.
sourceraw docstring

ignore-exceptionscljmacro

(ignore-exceptions & body)

Simple macro which wraps the given expression in a try/catch block and ignores the exception if caught.

Simple macro which wraps the given expression in a try/catch block and ignores the exception if caught.
sourceraw docstring

illegal-argument!clj

(illegal-argument! fmt & args)
source

illegal-state!clj

(illegal-state! fmt & args)
source

not-authorized!clj

(not-authorized! fmt & args)
source

service-limits!cljmacro

(service-limits! type ctx)
source

service-not-paid!cljmacro

(service-not-paid! ctx)
source

service-not-subscribed!cljmacro

(service-not-subscribed! ctx)
source

with-timeoutcljmacro

(with-timeout timeout-ms & body)

Run BODY in a future and throw an exception if it fails to complete after TIMEOUT-MS.

Run BODY in a `future` and throw an exception if it fails to complete after TIMEOUT-MS.
sourceraw docstring

wrap-exceptionsclj

(wrap-exceptions handler)
source

wrap-paid-accessclj

(wrap-paid-access handler)
source

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

× close