(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"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close