mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-20 02:51: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. |
||
|---|---|---|
| .. | ||
| catch-to-error!.txt | ||
| environmental-config.txt | ||
| error!.txt | ||
| event!.txt | ||
| log!.txt | ||
| signal!.txt | ||
| signal-content.txt | ||
| signal-creators.txt | ||
| signal-options.txt | ||
| spy!.txt | ||
| trace!.txt | ||