- Phase: 6. Advanced OOP & Errors
- Duration: 2 hours
- Distinguish exceptions from syntax errors
- Use
try/exceptblocks to handle runtime errors - Catch specific exception types
- Use multiple
exceptclauses - Execute cleanup code with
finally - Raise exceptions with
raise - Recognize common built-in exceptions
try/except/else/finally- Catching specific exceptions (ValueError, TypeError, etc.)
- Multiple except clauses and exception order
- The
elseclause (runs when no exception occurs) - The
finallyclause (always runs, cleanup) raisestatement and re-raising- Common built-in exceptions
Module 055: Operator Overloading
Module 057: Custom Exceptions