clojure.stacktrace

by Stuart Sierra

Full namespace name: clojure.stacktrace

Overview

Print stack traces oriented towards Clojure, not Java.

Public Variables and Functions

efunction

Usage: (e)
REPL utility.  Prints a brief stack trace for the root cause of the
most recent exception.

Added in Clojure version 1.1

Source

print-cause-tracefunction

Usage: (print-cause-trace tr)
       (print-cause-trace tr n)
Like print-stack-trace but prints chained exceptions (causes).

Added in Clojure version 1.1

Source

print-stack-tracefunction

Usage: (print-stack-trace tr)
       (print-stack-trace tr n)
Prints a Clojure-oriented stack trace of tr, a Throwable.
Prints a maximum of n stack frames (default: unlimited).
Does not print chained exceptions (causes).

Added in Clojure version 1.1

Source

print-throwablefunction

Usage: (print-throwable tr)
Prints the class and message of a Throwable.

Added in Clojure version 1.1

Source

print-trace-elementfunction

Usage: (print-trace-element e)
Prints a Clojure-oriented view of one element in a stack trace.

Added in Clojure version 1.1

Source

root-causefunction

Usage: (root-cause tr)
Returns the last 'cause' Throwable in a chain of Throwables.

Added in Clojure version 1.1

Source

© Rich Hickey
Licensed under the Eclipse Public License 1.0.
https://clojure.github.io/clojure/branch-clojure-1.9.0/clojure.stacktrace-api.html