-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathclojure.stacktrace-api.html
More file actions
206 lines (181 loc) · 11.7 KB
/
Copy pathclojure.stacktrace-api.html
File metadata and controls
206 lines (181 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>clojure.stacktrace - Clojure v1.12.4 API documentation</title>
<link rel="icon" href="static/favicon.png" />
<link rel="shortcut icon" href="static/favicon.png" />
<link rel="stylesheet" href="static/clojure.css" type="text/css" media="all" />
<link rel="stylesheet" href="static/wiki.css" type="text/css" media="all" />
<link rel="stylesheet" href="static/internal.css" type="text/css" media="all" />
<style>.menuWrapper{height: 36px;}</style>
</head>
<!--
This document was auto-generated from the source by the clojure autodoc system.
To report errors or ask questions about the overall documentation structure, formatting,
etc., contact Tom Faulhaber (google mail name: tomfaulhaber).
For errors in the documentation of a particular namespace, contact the author of that
namespace.
-->
<body>
<div id="AllContentContainer">
<div id="Header">
<a href="index.html" id="Logo"><img src="static/clojure-icon.gif" width="100" height="100" alt="Clojure" /></a>
<h1><a href="index.html" id="page-header" title="page header title">Clojure Core API Reference</a></h1>
</div>
<div id="leftcolumn"><div style="text-align: center;"></div>
<div class="menu">
<div class="WikiCustomNav WikiElement wiki">
<span class="toc-header"><span id="project-name">Clojure</span> <span id="version">v1.12.4</span> API</span><br />
<ul>
<li><a href="index.html" class="wiki_link">Overview</a></li>
<li><a href="api-index.html" class="wiki_link">API Index</a></li>
</ul>
<div class="NamespaceTOC">
<span class="toc-header">Namespaces</span>
<ul id="left-sidebar-list">
<li><a class="wiki_link" href="clojure.core-api.html">clojure.core</a></li><li><a class="wiki_link" href="clojure.data-api.html">clojure.data</a></li><li><a class="wiki_link" href="clojure.datafy-api.html">clojure.datafy</a></li><li><a class="wiki_link" href="clojure.edn-api.html">clojure.edn</a></li><li><a class="wiki_link" href="clojure.inspector-api.html">clojure.inspector</a></li><li><a class="wiki_link" href="clojure.instant-api.html">clojure.instant</a></li><li><a class="wiki_link" href="clojure.java.basis-api.html">clojure.java.basis</a></li><li><a class="wiki_link" href="clojure.java.browse-api.html">clojure.java.browse</a></li><li><a class="wiki_link" href="clojure.java.io-api.html">clojure.java.io</a></li><li><a class="wiki_link" href="clojure.java.javadoc-api.html">clojure.java.javadoc</a></li><li><a class="wiki_link" href="clojure.java.process-api.html">clojure.java.process</a></li><li><a class="wiki_link" href="clojure.java.shell-api.html">clojure.java.shell</a></li><li><a class="wiki_link" href="clojure.main-api.html">clojure.main</a></li><li><a class="wiki_link" href="clojure.math-api.html">clojure.math</a></li><li><a class="wiki_link" href="clojure.pprint-api.html">clojure.pprint</a></li><li><a class="wiki_link" href="clojure.reflect-api.html">clojure.reflect</a></li><li><a class="wiki_link" href="clojure.repl-api.html">clojure.repl</a></li><li><a class="wiki_link" href="clojure.set-api.html">clojure.set</a></li><li><a class="wiki_link" href="clojure.stacktrace-api.html">clojure.stacktrace</a></li><li><a class="wiki_link" href="clojure.string-api.html">clojure.string</a></li><li><a class="wiki_link" href="clojure.template-api.html">clojure.template</a></li><li><a class="wiki_link" href="clojure.test-api.html">clojure.test</a></li><li><a class="wiki_link" href="clojure.tools.deps.interop-api.html">clojure.tools.deps.interop</a></li><li><a class="wiki_link" href="clojure.walk-api.html">clojure.walk</a></li><li><a class="wiki_link" href="clojure.xml-api.html">clojure.xml</a></li><li><a class="wiki_link" href="clojure.zip-api.html">clojure.zip</a></li>
</ul>
</div>
<div class="BranchTOC">
<span class="toc-header">Other Versions</span>
<ul id="left-sidebar-branch-list">
<li><a class="wiki_link" href="index.html">v1.12.3 (stable)</a></li><li><a class="wiki_link" href="branch-master/index.html">v1.13 (in development)</a></li><li><a class="wiki_link" href="branch-clojure-1.11.4/index.html">v1.11.4 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.10.3/index.html">v1.10.3 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.9.0/index.html">v1.9 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.8.0/index.html">v1.8 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.7.0/index.html">v1.7 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.6.0/index.html">v1.6 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.5.0/index.html">v1.5 (legacy)</a></li><li><a class="wiki_link" href="branch-clojure-1.4.0/index.html">v1.4 (legacy)</a></li><li><a class="wiki_link" href="branch-1.3.x/index.html">v1.3 (legacy)</a></li><li><a class="wiki_link" href="branch-1.2.x/index.html">v1.2 (legacy)</a></li><li><a class="wiki_link" href="branch-1.1.x/index.html">v1.1 (legacy)</a></li>
</ul>
</div>
<a class="wiki_link" href="https://clojure.org">Clojure Home</a>
</div>
</div>
</div>
<div id="rightcolumn">
<div id="Content">
<div class="contentBox"><div class="innerContentBox">
<div class="wiki wikiPage" id="content_view">
<div id="right-sidebar"><div id="toc">
<h1 class="nopad">Table of Contents</h1>
<div class="toc-section" style="margin-left: 1em;">
<a style="margin-top: 3px;" href="#toc0">Overview</a>
</div><div class="toc-section" style="margin-left: 1em;">
<a style="margin-top: 3px;" href="#"></a>
</div><div class="toc-section" style="margin-left: 1em;">
<a style="margin-top: 3px;" href="#"></a>
</div><div class="toc-section" style="margin-left: 1em;">
<a style="margin-top: 3px;" href="#var-section">Vars and Functions</a>
<div class="toc-entry" style="margin-left: 1em;">
<a href="#clojure.stacktrace/e" class="toc-entry-anchor">e</a>
</div><div class="toc-entry" style="margin-left: 1em;">
<a href="#clojure.stacktrace/print-cause-trace" class="toc-entry-anchor">print-cause-trace</a>
</div><div class="toc-entry" style="margin-left: 1em;">
<a href="#clojure.stacktrace/print-stack-trace" class="toc-entry-anchor">print-stack-trace</a>
</div><div class="toc-entry" style="margin-left: 1em;">
<a href="#clojure.stacktrace/print-throwable" class="toc-entry-anchor">print-throwable</a>
</div><div class="toc-entry" style="margin-left: 1em;">
<a href="#clojure.stacktrace/print-trace-element" class="toc-entry-anchor">print-trace-element</a>
</div><div class="toc-entry" style="margin-left: 1em;">
<a href="#clojure.stacktrace/root-cause" class="toc-entry-anchor">root-cause</a>
</div>
</div><div class="toc-section" style="margin-left: 1em;">
<a style="margin-top: 3px;" href="#"></a>
</div>
</div>
</div>
<div id="content-tag"><h1 id="overview">API for <span id="clojure.stacktrace">clojure.stacktrace</span>
- <span id="header-project">Clojure</span> <span id="header-version">v1.12.4</span><span id="header-status-block"> (<span id="header-status">stable</span>)</span>
</h1>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<br />Full namespace name: <span id="long-name">clojure.stacktrace</span>
<p></p>
<h2>Overview</h2>
<pre id="namespace-docstr">Print stack traces oriented towards Clojure, not Java.</pre>
<br />
<div id="var-section">
<p></p>
<h2>Public Variables and Functions</h2>
<div id="var-entry">
<br />
<hr />
<h2 id="clojure.stacktrace/e">e</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (e)
</pre>
<pre id="var-docstr">REPL utility. Prints a brief stack trace for the root cause of the
most recent exception.</pre>
<pre id="var-specs"></pre>
<span class="var-added"><span id="content">Added in Clojure version 1.1</span><br /></span>
<a id="var-source" href="https://github.com/clojure/clojure/blob/dbb448f7709b20c392558e7d7871d1e9b28c9440/src/clj/clojure/stacktrace.clj#L82">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clojure.stacktrace/print-cause-trace">print-cause-trace</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (print-cause-trace tr)
(print-cause-trace tr n)
</pre>
<pre id="var-docstr">Like print-stack-trace but prints chained exceptions (causes).</pre>
<pre id="var-specs"></pre>
<span class="var-added"><span id="content">Added in Clojure version 1.1</span><br /></span>
<a id="var-source" href="https://github.com/clojure/clojure/blob/dbb448f7709b20c392558e7d7871d1e9b28c9440/src/clj/clojure/stacktrace.clj#L72">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clojure.stacktrace/print-stack-trace">print-stack-trace</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (print-stack-trace tr)
(print-stack-trace tr n)
</pre>
<pre id="var-docstr">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).</pre>
<pre id="var-specs"></pre>
<span class="var-added"><span id="content">Added in Clojure version 1.1</span><br /></span>
<a id="var-source" href="https://github.com/clojure/clojure/blob/dbb448f7709b20c392558e7d7871d1e9b28c9440/src/clj/clojure/stacktrace.clj#L50">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clojure.stacktrace/print-throwable">print-throwable</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (print-throwable tr)
</pre>
<pre id="var-docstr">Prints the class and message of a Throwable. Prints the ex-data map
if present.</pre>
<pre id="var-specs"></pre>
<span class="var-added"><span id="content">Added in Clojure version 1.1</span><br /></span>
<a id="var-source" href="https://github.com/clojure/clojure/blob/dbb448f7709b20c392558e7d7871d1e9b28c9440/src/clj/clojure/stacktrace.clj#L40">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clojure.stacktrace/print-trace-element">print-trace-element</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (print-trace-element e)
</pre>
<pre id="var-docstr">Prints a Clojure-oriented view of one element in a stack trace.</pre>
<pre id="var-specs"></pre>
<span class="var-added"><span id="content">Added in Clojure version 1.1</span><br /></span>
<a id="var-source" href="https://github.com/clojure/clojure/blob/dbb448f7709b20c392558e7d7871d1e9b28c9440/src/clj/clojure/stacktrace.clj#L28">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clojure.stacktrace/root-cause">root-cause</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (root-cause tr)
</pre>
<pre id="var-docstr">Returns the last 'cause' Throwable in a chain of Throwables.</pre>
<pre id="var-specs"></pre>
<span class="var-added"><span id="content">Added in Clojure version 1.1</span><br /></span>
<a id="var-source" href="https://github.com/clojure/clojure/blob/dbb448f7709b20c392558e7d7871d1e9b28c9440/src/clj/clojure/stacktrace.clj#L20">Source</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="foot">
<div id="copyright" style="text-align: center;">Copyright 2007-2025 by Rich Hickey</div>
</div>
</div>
<div id="DesignedBy">Logo & site design by <a href="http://www.tomhickey.com" title="Visit Tom Hickey's website.">Tom Hickey</a>.<br />
Clojure auto-documentation system by Tom Faulhaber.</div>
</div>
<!-- /AllContentContainer -->
</body>
</html>