API for clojure.stacktrace - Clojure v1.5 (legacy)

by Stuart Sierra

Full namespace name: clojure.stacktrace

Overview

Print stack traces oriented towards Clojure, not Java.

Public Variables and Functions



e

function
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-trace

function
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-trace

function
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-throwable

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

    Added in Clojure version 1.1
Source


print-trace-element

function
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-cause

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

    Added in Clojure version 1.1
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.