The Effects of an Exception
Learn about the effects of exceptions.
We'll cover the following
NoReturn in exception
When an exception is raised, it appears to stop program execution immediately. Any lines that were supposed to run after the exception is raised are not executed, and unless the exception is handled by an except
clause, the program will exit with an error message. We’ll examine unhandled exceptions first, and then take a close look at handling exceptions.
Take a look at this basic function:
Get hands-on with 1400+ tech skills courses.