3 ms·
> I think what the post is trying to say is that you should let your exception bubble up. It's not an either-or situation though. Even if you let the exceptio
by KallDrexx 5y ago
> I think what the post is trying to say is that you should let your exception bubble up.
It's not an either-or situation though. Even if you let the exception bubble up and sentry logs the exception, logging performed prior to the exception and at the time the exception is caught (prior to being bubbled up) as valuable context to how the exception happens, which can lower debugging time.
The exception just tells you that something went done, it doesn't always have the reason why something went wrong. And the context for why is not always available at the time of raising the exception (the context may be from a prior function call, or the consumer of the function that raised the exception).