API for clojure.stacktrace - Clojure v1.1 (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.

    
    
    Source
  


print-cause-trace

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

    
    
    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).

    
    
    Source
  


print-throwable

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

    
    
    Source
  


print-trace-element

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

    
    
    Source
  


root-cause

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

    
    
    Source
  
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.