telemere/projects/main
Peter Taoussanis 0de5c094e5 [mod] Remove advanced options from catch->error!
`catch->error!` with default opts is quite handy for use with `trace!`/`spy!`.

But there's a lot that users might want to customize, including:

  - Exactly what error type to catch.
  - Whether or not to rethrow on catch.
  - Error binding sym to enable use within signal message, data, etc.

We could support all of this via `catch->error!` opts but there's not much
point. If anyway customizing such behaviour, it'd be better for the user to just
use an appropriate `try/catch`.

So I've now documented this recommendation, and removed all but the most basic
(:catch-val) options.

This is a BREAKING change for anyone that was previously using any of the
following options:

  :rethrow?
  :catch-sym

Note that `:rethrow?` was never particularly helpful (independently of
`:catch-val` anyway), and the removal of `:catch-sym` will throw a compile-time
error for any existing users.
2024-12-23 23:04:40 +01:00
..
bb [nop] Restructure repo 2024-08-28 16:53:31 +02:00
public [nop] Restructure repo 2024-08-28 16:53:31 +02:00
resources/signal-docstrings [mod] Remove advanced options from catch->error! 2024-12-23 23:04:40 +01:00
src/taoensso [mod] Remove advanced options from catch->error! 2024-12-23 23:04:40 +01:00
test/taoensso [mod] Remove advanced options from catch->error! 2024-12-23 23:04:40 +01:00
.gitignore [nop] Restructure repo 2024-08-28 16:53:31 +02:00
bb.edn [nop] Restructure repo 2024-08-28 16:53:31 +02:00
jaeger.sh [nop] Restructure repo 2024-08-28 16:53:31 +02:00
project.clj [mod] [#39] Remove shell API 2024-12-22 13:58:03 +01:00
shadow-cljs.edn [nop] Restructure repo 2024-08-28 16:53:31 +02:00
shadow-cljs.sh [nop] Restructure repo 2024-08-28 16:53:31 +02:00