Liking cljdoc? Tell your friends :D

user.clojure.macro

clj
References:
- https://github.com/zcaudate/hara/blob/master/src/hara/common/error.clj
raw docstring

aifclj/smacro

(aif test then)
(aif test then else)

compile-ifclj/smacro

(compile-if test then)
(compile-if test then else)

Evaluates test. If it returns logical true (and doesn't throw), expands to then, otherwise expands to else.

Evaluates `test`. If it returns logical true (and doesn't throw), expands
to `then`, otherwise expands to `else`. 
raw docstring

compile-whenclj/smacro

(compile-when test & body)

errorclj/smacro

(error e & [opt? & more])

Throws an exception when called.

(error "This is an error") => (throws Exception "This is an error")

(error (Exception. "This is an error") "This is a chained error") => (throws Exception "This is a chained error")

Throws an exception when called.

(error "This is an error")
=> (throws Exception "This is an error")

(error (Exception. "This is an error")
       "This is a chained error")
=> (throws Exception "This is a chained error")
raw docstring

exceptionclj/smacro

(exception & xs)

if-cljclj/smacro

(if-clj then else)

if-cljsclj/smacro

(if-cljs then else)

suppressclj/smacro

(suppress body)
(suppress body catch-val)

Suppresses any errors thrown in the body.

(suppress (error "Error")) => nil

(suppress (error "Error") :error) => :error

(suppress (error "Error") (fn [e] (.getMessage e))) => "Error"

Suppresses any errors thrown in the body.

(suppress (error "Error")) => nil

(suppress (error "Error") :error) => :error

(suppress (error "Error") (fn [e] (.getMessage e))) => "Error"
raw docstring

throwable-classclj/smacro

(throwable-class)

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

× close