Skip to main content

clojure.main

D

  • demunge

    Given a string representation of a fn class, as in a stack trace element, returns a readable version.

E

  • err->msg

    Helper to return an error message string from an exception.

  • ex-str

    Returns a string from exception data, as produced by ex-triage. The first line summarizes the exception phase and loca...

  • ex-triage

    Returns an analysis of the phase, error, cause, and location of an error that occurred based on Throwable data, as ret...

L

  • load-script

    Loads Clojure source from a file or resource given its path. Paths beginning with @ or @/ are considered relative to c...

M

  • main

    Usage: java -cp clojure.jar clojure.main [init-opt*] [main-opt] [arg*] With no options or args, runs an interactive R...

R

  • renumbering-read

    Reads from reader, which must be a LineNumberingPushbackReader, while capturing the read string. If the read is succes...

  • repl

    Generic, reusable, read-eval-print loop. By default, reads from *in*, writes to *out*, and prints exception summaries ...

  • repl-caught

    Default :caught hook for repl

  • repl-exception

    Returns the root cause of throwables

  • repl-prompt

    Default :prompt hook for repl

  • repl-read

    Default :read hook for repl. Reads from *in* which must either be an instance of LineNumberingPushbackReader or duplic...

  • repl-requires

    A sequence of lib specs that are applied to `require` by default when a new command-line REPL is started.

  • report-error

    Create and output an exception report for a Throwable to target. Options: :target - "file" (default), "stderr", "...

  • root-cause

    Returns the initial cause of an exception or error by peeling off all of its wrappers

S

  • skip-if-eol

    If the next character on stream s is a newline, skips it, otherwise leaves the stream untouched. Returns :line-start, ...

  • skip-whitespace

    Skips whitespace characters on stream s. Returns :line-start, :stream-end, or :body to indicate the relative location ...

  • stack-element-str

    Returns a (possibly unmunged) string representation of a StackTraceElement

W

  • with-bindings

    Executes body in the context of thread-local bindings for several vars that often need to be set!: *ns* *warn-on-refle...

  • with-read-known

    Evaluates body with *read-eval* set to a "known" value, i.e. substituting true for :unknown if necessary.