10.1 Handling exceptions using try and except
Ace your homework & exams now with Quizwiz!
except [block]
If the code in the try block causes an exception, then the code placed in a following except block is executed
Error-checking code
code that a programmer introduces to detect and handle errors that occur while the program executes
try [block]
code that potentially can produce an exception
Exception-handling
constructs because they handle exceptional circumstances, another word for errors during execution.
exception handling
the process of responding to unexpected or unwanted events and errors during execution