Use You can't access the exception object in a catch-all block. You don't know its type, so you can't name it or call methods on it. All you know is something went wrong. Use catch-all blocks to log unknown errors or clean up resources before terminating.
Write Understanding this concept deeply will help you write better code. Practice with examples until the pattern becomes automatic. Review earlier sections if anything is unclear. Building on solid foundations makes advanced topics easier.