Skip to content

Commit 276fbfd

Browse files
borkdudestuarthalloway
authored andcommitted
CLJ-2571 Add Throwable return tag to ex-cause
Signed-off-by: Stuart Halloway <[email protected]>
1 parent 30a36cb commit 276fbfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clj/clojure/core.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -4810,7 +4810,8 @@
48104810
(defn ex-cause
48114811
"Returns the cause of ex if ex is a Throwable.
48124812
Otherwise returns nil."
4813-
{:added "1.10"}
4813+
{:tag Throwable
4814+
:added "1.10"}
48144815
[ex]
48154816
(when (instance? Throwable ex)
48164817
(.getCause ^Throwable ex)))

0 commit comments

Comments
 (0)