Exception Handling - CBSE Class 12 Computer Science Notes, Diagrams and Solved Questions
Tell syntax errors, exceptions and logical errors apart, recognise common built-in exceptions, and keep programs running with try, except, else and finally, including input that is checked until it is valid.
In this chapter
Syntax errors, runtime exceptions and logical errors
Common built-in exceptions and what raises each
Handling an exception with try and except
Several except blocks, grouped handlers and a catch-all