ex-cause

functionsince v0.0-1576Edit
(ex-cause ex)

Source docstring:
Returns exception cause (an Error / ExceptionInfo) if ex is an
ExceptionInfo.
Otherwise returns nil.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ex-cause
  [ex]
  (when (instance? ExceptionInfo ex)
    (.-cause ex)))