clojure.main
D
Given a string representation of a fn class, as in a stack trace element, returns a readable version.
function([fn-name])
E
Helper to return an error message string from an exception.
function([e])
Returns a string from exception data, as produced by ex-triage. The first line summarizes the exception phase and loca...
function([{:clojure.error/keys [phase source path line column symbol class cause spec], :as triage-data}])
Returns an analysis of the phase, error, cause, and location of an error that occurred based on Throwable data, as ret...
function([datafied-throwable])
L
Loads Clojure source from a file or resource given its path. Paths beginning with @ or @/ are considered relative to c...
function([path])
M
Usage: java -cp clojure.jar clojure.main [init-opt*] [main-opt] [arg*] With no options or args, runs an interactive R...
function([& args])
R
Reads from reader, which must be a LineNumberingPushbackReader, while capturing the read string. If the read is succes...
function([opts reader line-number])
Generic, reusable, read-eval-print loop. By default, reads from *in*, writes to *out*, and prints exception summaries ...
function([& options])
Default :caught hook for repl
function([e])
Returns the root cause of throwables
function([throwable])
Default :prompt hook for repl
function([])
Default :read hook for repl. Reads from *in* which must either be an instance of LineNumberingPushbackReader or duplic...
function([request-prompt request-exit])
A sequence of lib specs that are applied to `require` by default when a new command-line REPL is started.
valueCreate and output an exception report for a Throwable to target. Options: :target - "file" (default), "stderr", "...
function([t & {:keys [target], :or {target "file"}, :as opts}])
Returns the initial cause of an exception or error by peeling off all of its wrappers
function([t])
S
If the next character on stream s is a newline, skips it, otherwise leaves the stream untouched. Returns :line-start, ...
function([s])
Skips whitespace characters on stream s. Returns :line-start, :stream-end, or :body to indicate the relative location ...
function([s])
Returns a (possibly unmunged) string representation of a StackTraceElement
function([el])
W
Executes body in the context of thread-local bindings for several vars that often need to be set!: *ns* *warn-on-refle...
macro([& body])
Evaluates body with *read-eval* set to a "known" value, i.e. substituting true for :unknown if necessary.
macro([& body])