1. Exception handling 2. IntroductionProgramming errors are unavoidable, even forexperienced programmers. Have three categories of errors:syntax errors, runtime errors, and…