9 - Exception Handling
9 - Exception Handling
Computing/Information System
<@Lanka Methodologies
Programming Nippon BizTech Institute>
| Exception Handling 1
ACKNOWLEDGEMENT
• The try block lets you test a block of code for errors.
• The except block lets you handle the error.
• The else block lets you execute code when there is no error.
• The finally block lets you execute code, regardless of the
result of the try- and except blocks.
Exception Handling
• The finally block, if specified, will be executed regardless if the try block
raises an error or not.
END