(add-ns-env existing-map ns-name)
Given a existing map and a namespace, use build-var-map to build the environment for that namespace and merge it in.
Given a existing map and a namespace, use build-var-map to build the environment for that namespace and merge it in.
(build-var-map alias-map)
Given the return from (ns-publics <ns>), which is a map of public intern mappings for the namespace -- which is actually a map of aliases to Vars, build a map of all of the Vars and their current values.
Given the return from (ns-publics <ns>), which is a map of public intern mappings for the namespace -- which is actually a map of aliases to Vars, build a map of all of the Vars and their current values.
(env-map ns-vec)
Given a vector of namespace names, do build-var-map for each of them and merge the results into an overall map.
Given a vector of namespace names, do build-var-map for each of them and merge the results into an overall map.
(ex-info-no-print-data msg map cause)
We store a lot of information in the data of an ex-info object, and when a java.util.concurrent.ExecutionException tries to create its message, it does a (.toString <our-ex-info-exception>), which generates not only a huge string, but also sometimes runs into problems. There is no value to this, so we will create a subclass of clojure.lang.ExceptionInfo (which is what ex-info creates) which overrides the (.toString ...) method, and does not include the data in the string.
We store a *lot* of information in the data of an ex-info object, and when a java.util.concurrent.ExecutionException tries to create its message, it does a (.toString <our-ex-info-exception>), which generates not only a huge string, but also sometimes runs into problems. There is no value to this, so we will create a subclass of clojure.lang.ExceptionInfo (which is what ex-info creates) which overrides the (.toString ...) method, and does not include the data in the string.
(hook)
(hook options e)
Given an exception, hook all of the functions that it calls where we can find the source.
Given an exception, hook all of the functions that it calls where we can find the source.
(hook-fn fn & args)
Take a function and argument list, and do the function, and catch any exceptions and pass them up the line. This could be firmed up with namespace qualified keywords! Lots of code in here to catch any exceptions that might happen while we are processing exceptions.
Take a function and argument list, and do the function, and catch any exceptions and pass them up the line. This could be firmed up with namespace qualified keywords! Lots of code in here to catch any exceptions that might happen while we are processing exceptions.
(unhook)
Unhook all currently hooked functions.
Unhook all currently hooked functions.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close