Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
Clojure
clojure.core
ex-cause
ex-cause
function
v1.10
clojure.core/ex-cause
Available in:
BB
CLJ
CLJS
(
ex-cause
[
ex
]
)
Returns the cause of ex if ex is a Throwable. Otherwise returns nil.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Control Flow › Exceptions
See Also
Throwable->map
catch
ex-data
ex-info
ex-message
finally
throw
try
View source on GitHub ↗
← every?
ex-data →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4