mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-28 22:18:26 +00:00
`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. |
||
|---|---|---|
| .. | ||
| bb | ||
| public | ||
| resources/signal-docstrings | ||
| src/taoensso | ||
| test/taoensso | ||
| .gitignore | ||
| bb.edn | ||
| jaeger.sh | ||
| project.clj | ||
| shadow-cljs.edn | ||
| shadow-cljs.sh | ||