mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-23 20:11:11 +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. |
||
|---|---|---|
| .. | ||
| taoensso | ||