Skip to main content

try*

macro

taoensso.truss/try*

(try* [expr* catch-clauses* ?finally-clause])
Like `try`, but `catch` clause class may be: `:ex-info` -- Catches only `ExceptionInfo` `:common` --- Catches `js/Error` (Cljs), `Exception` (Clj) `:all` ------ Catches `:default` (Cljs), `Throwable` (Clj) `:default` -- Catches `:default` (Cljs), `Exception`, and `AssertionError` (Clj) but NOT other (usually critical) `Error`s Addresses CLJ-1293 and the fact that `AssertionError`s are typically NON-critical (so desirable to catch, in contrast to other `Error` classes).

No examples yet. Be the first to add one!