Stack trace is much more verbose and shows the symbols leading to the failing function call
The error wrapping(s) produce a log line containing a brief message from each layer in the codebase that expected no errors — subtle difference but one is a dump and the other is much more meaningful.
kubanczyk|9 months ago
Agreed. How I articulate it, often a function is just another layer, does one core thing and one-two extras. I wrap meticulously the errors of the extras. The core errors mainly speak for themselves, so they rarely need any wrapping.
Avoids:
But promotes: The latter case reads like a list of plot twists, because it is one. A corresponding 40-line stack trace might be less readable.