(exception->map ex)
returns exception map from supplied Exception object
returns exception map from supplied Exception object
(fn->function f logger log-exception-message)
(fn->function f logger log-exception-message flat-map?)
takes a clojure fn for mapping and returns a java.util.function.Function instance Multi arity versions also take a logger If logger is a macro e.g. clojure.tools.logging, create logger-fn using utils/macro->fn and supply that as argument e.g. (def logger-fn (macro->fn clojure.tools.logging/info)) The reason is Clojure functions can't take macros as argument
takes a clojure fn for mapping and returns a java.util.function.Function instance Multi arity versions also take a logger If logger is a macro e.g. clojure.tools.logging, create logger-fn using utils/macro->fn and supply that as argument e.g. (def logger-fn (macro->fn clojure.tools.logging/info)) The reason is Clojure functions can't take macros as argument
(fn->predicate f logger log-exception-message)
Takes a clojure predicate fn and returns a java.util.function.Predicate instance Multi arity versions also take a logger If logger is a macro e.g. clojure.tools.logging, create logger-fn using utils/macro->fn and supply that as argument e.g. (def logger-fn (macro->fn clojure.tools.logging/info)) The reason is Clojure functions can't take macros as argument
Takes a clojure predicate fn and returns a java.util.function.Predicate instance Multi arity versions also take a logger If logger is a macro e.g. clojure.tools.logging, create logger-fn using utils/macro->fn and supply that as argument e.g. (def logger-fn (macro->fn clojure.tools.logging/info)) The reason is Clojure functions can't take macros as argument
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close