API for clojure.stacktrace - Clojure v1.12.4 (stable)
Full namespace name: clojure.stacktrace
Overview
Print stack traces oriented towards Clojure, not Java.
Public Variables and Functions
e
functionUsage: (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-trace
functionUsage: (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-trace
functionUsage: (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-throwable
functionUsage: (print-throwable tr)
Prints the class and message of a Throwable. Prints the ex-data map if present.Added in Clojure version 1.1
Source
print-trace-element
functionUsage: (print-trace-element e)
Prints a Clojure-oriented view of one element in a stack trace.Added in Clojure version 1.1
Source
root-cause
functionUsage: (root-cause tr)
Returns the last 'cause' Throwable in a chain of Throwables.Added in Clojure version 1.1
Source
Copyright 2007-2025 by Rich Hickey
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.
Clojure auto-documentation system by Tom Faulhaber.
