Liking cljdoc? Tell your friends :D

zpst.hook


add-ns-envclj

(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.
sourceraw docstring

build-var-mapclj

(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.
sourceraw docstring

env-mapclj

(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.
sourceraw docstring

ex-info-no-print-dataclj

(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.
sourceraw docstring

hookclj

(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.
sourceraw docstring

hook-fnclj

(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.
sourceraw docstring

hooked-fnsclj

source

unhookclj

(unhook)

Unhook all currently hooked functions.

Unhook all currently hooked functions.
sourceraw docstring

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

× close