io.jesi.backpack.exceptions

exception?

(exception? x)

Returns true if x is a Clojure Throwable or ClojureScript js/Error

throw-if-throwable

(throw-if-throwable ex)

Throw ex if it’s an exception. Retains the message, data, and cause