Or catch the top level function and see every exception in your project? Tell me which language does not have a top level main function?
Or maybe you have 100% path coverage in your test..
Knowing what kind of errors can occur is one of those tools.
But often some "expected" errors can be handled in some way better (retry, ask user, use alternate approach, ...)