ELI5: Explain Like I'm 5

Exception handling

Exception handling is a way to help keep your program running smoothly. Some things, like computer memory or user input, can cause problems in the code you write. When the code runs into one of these problems you’ve written, it will stop running and throw an exception. An exception is like an error message that tells you something went wrong. Exception handling lets you make your code “catch” an exception and decide what to do instead of stopping. For example, instead of stopping, it could try again or gracefully ignore the exception and move on. That way, your program can keep running.
Related topics others have asked about: