Liking cljdoc? Tell your friends :D
Clojure only.

hara.core.base.error


suppresscljmacro

(suppress body)
(suppress body catch-val)

Suppresses any errors thrown in the body.

(suppress (throw (ex-info "Error" {}))) => nil

(suppress (throw (ex-info "Error" {})) :error) => :error

(suppress (throw (ex-info "Error" {})) (fn [e] (.getMessage e))) => "Error"

Suppresses any errors thrown in the body.

(suppress (throw (ex-info "Error" {}))) => nil

(suppress (throw (ex-info "Error" {})) :error) => :error

(suppress (throw (ex-info "Error" {}))
          (fn [e]
            (.getMessage e))) => "Error"
raw docstring

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

× close